Here you can find the source of deepCopy(int[][] src, int[][] dest)
public static void deepCopy(int[][] src, int[][] dest)
//package com.java2s; //License from project: Open Source License public class Main { public static void deepCopy(int[][] src, int[][] dest) { for (int i = 0; i < src.length; i++) { System.arraycopy(src[i], 0, dest[i], 0, src[i].length); }/*from w ww. j a v a2 s . co m*/ } public static void deepCopy(int[][][] src, int[][][] dest) { for (int i = 0; i < src.length; i++) { deepCopy(src[i], dest[i]); } } public static <T> void deepCopy(T[][] src, T[][] dest) { for (int i = 0; i < src.length; i++) { System.arraycopy(src[i], 0, dest[i], 0, src[i].length); } } }