public int input(int[][] scores) { Integer[][] wrapper = Stream.of(scores) .map(arr -> IntStream.of(arr).boxed().toArray(Integer[]::new)) .toArray(Integer[][]::new); }