Java Object Create toObject(double[] a)

Here you can find the source of toObject(double[] a)

Description

Converts a double array into a Double (Object) array.

License

Open Source License

Declaration

public static Double[] toObject(double[] a) 

Method Source Code

//package com.java2s;
// This module is multi-licensed and may be used under the terms

public class Main {
    /**/*from w  w w . ja  v  a  2s.co m*/
    * Converts a <code>double</code> array into a <code>Double</code> (Object) array.
    */
    public static Double[] toObject(double[] a) {
        Double[] a2 = new Double[a.length];
        for (int i = 0; i < a.length; i++) {
            a2[i] = a[i];
        }
        return a2;
    }
}

Related

  1. toObject(boolean[] array)
  2. toObject(byte[] array)
  3. toObject(byte[] byteArray)
  4. toObject(byte[] primitiveArray)
  5. toObject(Class clazz, String value)
  6. toObject(final int i)
  7. toObject(int[] array)
  8. toObject(int[] values)
  9. toObject(long[] array)