I am looking to convert the List<List<Integer>> into int[][] in Java 8. Any quick pointers?
I tried something like below, but I need int[][].
List<Integer> flat = arr.stream()
.flatMap(List::stream)
.collect(Collectors.toList());
>`
– Yassin Hajaj Apr 22 '21 at 06:17