int[] a = {1,2,3,4,5}; int[] b = Arrays.copyOf(a, a.length);
int[] a = {1, 2, 3}; int[] b = a.clone();