You are viewing a single comment's thread. Return to all comments →
int[] a = new int[n]; int index = 0; while(n > 0){ a[index++] = scan.nextInt(); n--; }
Java 1D Array
You are viewing a single comment's thread. Return to all comments →