From 6aa8b1385e8a8d66ecf1ac96f819d30270e32be0 Mon Sep 17 00:00:00 2001 From: kushal sharma <43320217+kushal0074@users.noreply.github.com> Date: Tue, 25 Dec 2018 01:35:18 +0530 Subject: [PATCH] Arrays in JAVA A simple way showing how to use arrays in java Introduction of arrays in java --- Array.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Array.java diff --git a/Array.java b/Array.java new file mode 100644 index 0000000..f194369 --- /dev/null +++ b/Array.java @@ -0,0 +1,16 @@ +class Array{ + public static void main(String [] args) + + { + int i; + + int a[]=new int[3]; + a[0]=1; + a[1]=3; + a[2]=4; + + for(i=0;i<4;i++){ + System.out.println(a[i]); + } +} +}