Here you can find the source of arrayCopy(String[][] src, int src_position, String[][] dst, int dst_position, int length)
public static void arrayCopy(String[][] src, int src_position, String[][] dst, int dst_position, int length)
//package com.java2s; //License from project: Open Source License public class Main { public static void arrayCopy(String[][] src, int src_position, String[][] dst, int dst_position, int length) { System.arraycopy(src, src_position, dst, dst_position, length); for (int i = src_position; i < src_position + length; i++) { String[] tem = new String[src[i].length]; System.arraycopy(src[i], 0, tem, 0, tem.length); src[i] = tem;/*www.ja va 2 s.c o m*/ } } public static String[][] arrayCopy(String[][] src, int src_position, int length) { String[][] dst = new String[length][]; arrayCopy(src, src_position, dst, 0, length); return dst; } public static String[][] arrayCopy(String[][] src) { return arrayCopy(src, 0, src.length); } }