What do you want to save?
Add Code snippet
New code examples
-
Other 2021-10-10 10:47:05
Java 7. Converting List<List<Integer>> to int[][]:
// original list List<List<Integer>> list = Arrays.asList( Arrays.asList(1, 2), Arrays.asList(2), Arrays.asList(3)); // initialize the array, // specify only the number of rows int[][] arr = new int[list.size()][]; // i... Add solution
Best helpers
Srishti L
+5
Dan Romik
+5
Enceladus
+5
Jaehyeon Yu
+5
Rrrrhh
+5
Ciara
+5
L E Morin
+5
EHH
+5
BuckNaked69
+5
Supes9
+5
Anirudhan J
+5