标签:
public static native void arraycopy(Object src, int srcPos, Object dest, int destPos,int length);
public static int[] copyOf(int[] original, int newLength) { int[] copy = new int[newLength]; System.arraycopy(original, 0, copy, 0, Math.min(original.length, newLength)); return copy; }
JAVA System.arraycopy 和Arrays.copyof 效率比较
标签:
原文地址:http://www.cnblogs.com/CandiceW/p/5726416.html