You are viewing a single comment's thread. Return to all comments →
Practicing mapping:
//java8 ArrayList<Integer> A = new ArrayList<>(); while (scan.hasNextInt())A.add(scan.nextInt()); int[] a = A.stream().mapToInt(i -> i).toArray();
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 →
Practicing mapping: