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