Here you can find the source of toArrayList(double[] dd)
public static ArrayList toArrayList(double[] dd)
//package com.java2s; //License from project: Open Source License import java.util.ArrayList; public class Main { public static ArrayList toArrayList(double[] dd) { ArrayList v = new ArrayList(dd.length); for (int i = 0; i < dd.length; i++) { v.add(dd[i]);// w ww. j a va 2 s. c o m } return v; } }