static int[] cloneArray(int[] a) { int[] b = new int[a.length]; System.arraycopy(a, 0, b, 0, a.length); ret b; } static bool[] cloneArray(bool[] a) { bool[] b = new bool[a.length]; System.arraycopy(a, 0, b, 0, a.length); ret b; } static short[] cloneArray(short[] a) { short[] b = new short[a.length]; System.arraycopy(a, 0, b, 0, a.length); ret b; }