Kopiuj tablicę w Java 2d

int[][] copy = Arrays.stream(matrix).map(int[]::clone).toArray(int[][]::new);
Zalven