Convert Nested List of Integers to a two dimensional array using Streams ( List<List<Integer>> -> int[][] ) [duplicate]
问题 This question already has answers here : Convert ArrayList into 2D array containing varying lengths of arrays (6 answers) Closed 1 year ago . I searched for similar questions but I found only for the object String which dont apply to this case: Want to convert List<List<Integer>> list to int[][] array using streams So far I got this: int[][] array= list.stream().map(List::toArray)... I used as a base other similar questions I found. But these use String and can't make it work for Integers-