Please explain how it looks in the code. Those. There are arrays of type int and how to drive them into the method:
public List<Integer> convert (List<int[]> list) { } Description: With this method, you must go through all the elements of all the arrays in the list and add them to one common Integer sheet. Arrays in the list can be of different sizes. For example:
list.add(new int[]{1, 2}); list.add(new int[]{3, 4, 5, 6}); List<Integer> result = convertList.convert(list); List<Integer> result will contain the elements: (1, 2, 3, 4, 5, 6) .
I don’t understand how to convert them to type List<int[]> list .
List<Integer[]>, and in the method create a result list and addArrays.asList(<your_array>). - Stas Dorozhko