code: public static char[] copyOf(char[] charArray) {
  
      	char[] copy = new char[charArray.length];
          System.arraycopy(charArray, 0, copy, 0, charArray.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 char
  @param charArray The array to copy
  @return A copy of the input, of component type U