Monday, December 29, 2014

Java Tutorial For Beginners 13 - Arrays in Java

8:49 AM















1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package lesson1;
public class MyClass {

public static void main(String[] args) {
int[] myintarray = {100,31,26,48,52};
/*
int[] myIntArray = new int[3];
int[] myIntArray = {1,2,3};
int[] myIntArray = new int[]{1,2,3};
*/
int index=0;
while(index < 5) {
System.out.println(myintarray[index]);
index++;
}
}

}








Searches related to array java

arraylist java

string array java

array class java

multidimensional array java

array length java

dynamic array java

2d array java

print array java

Written by

We are one of the initiators of the development of information technology in understanding the need for a solution that is familiar and close to us.

0 comments:

Post a Comment

 

© 2013 Klick Dev. All rights resevered.

Back To Top