You are viewing a single comment's thread. Return to all comments →
My Code, nice and simple.
int [] a = new int[n]; int count = 0; while(scan.hasNext()) { a[count] = scan.nextInt(); count++; }
Seems like cookies are disabled on this browser, please enable them to open this website
Java 1D Array
You are viewing a single comment's thread. Return to all comments →
My Code, nice and simple.