Java tutorial
//package com.java2s; public class Main { public static int[][] copyArray(int[][] fromArray) { int[][] inArray = new int[fromArray.length][fromArray[0].length]; for (int i = 0; i < fromArray.length; i++) System.arraycopy(fromArray[i], 0, inArray[i], 0, fromArray[i].length); return inArray; } }