Here you can find the source of toObject(double[] a)
double
array into a Double
(Object) array.
public static Double[] toObject(double[] a)
//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; } }