How do you  copy an array java?
 The java.util.Arrays.copyOf(int[] original,int newLength) method copies the specified array, truncating or padding with zeros (if necessary) so the copy has the specified length. 