### Question:
ConvertList { public List<Integer> toList(int[][] array) { ArrayList<Integer> result = new ArrayList<>(array[0].length + array[1].length); for (int[] currentArr : array) { for (int value : currentArr) { result.add(value); } } return result; }  List<Integer> toList(int[][] array); int[][] toArray(List<Integer> list, int rows); List<Integer> convert(List<int[]> list);  }### Answer:
@Test public void convertTwoDimensionalArrayToArrayList() { ConvertList testConvert = new ConvertList(); List<Integer> result = testConvert.toList(new int[][]{ {1, 2, 3}, {4, 5, 6}, {7, 8, 8} }); List<Integer> expect = new ArrayList<>(asList(1, 2, 3, 4, 5, 6, 7, 8, 8)); assertThat(result, is(expect)); }