code: public static int[] copyOf(int[] intArray) {
  
          int[] copy = new int[intArray.length];
          System.arraycopy(intArray, 0, copy, 0, intArray.length);
          return copy;
      }
docs: This method does a similar job to JSE 6.0's Arrays.copyOf() method and overloads the method for use with arrays of ints
  @param intArray The array to copy
  @return A copy of the input, of component type U