Here you can find the source of toDoubleList(double[] array)
public static List<Double> toDoubleList(double[] array)
//package com.java2s; //License from project: Open Source License import java.util.ArrayList; import java.util.List; public class Main { public static List<Double> toDoubleList(double[] array) { List<Double> result = new ArrayList<Double>(array.length); for (int i = 0; i < array.length; i++) { result.add(i, array[i]);/*from w ww. ja va 2s .c om*/ } return result; } }