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