Here you can find the source of toDoubleArray(List
private static double[] toDoubleArray(List<String> values)
//package com.java2s; import java.util.List; public class Main { private static double[] toDoubleArray(List<String> values) { double[] ds = new double[values.size()]; for (int i = 0; i < ds.length; i++) { ds[i] = Double.parseDouble(values.get(i)); }/*from w w w .j ava 2 s.c o m*/ return ds; } }