Java tutorial
//package com.java2s; import java.util.List; public class Main { /** * * @param values * @return */ public static Double[] toDoubleArray(List<Float> values) { Double[] doubles = new Double[values.size()]; int i = 0; for (Float float1 : values) { doubles[i++] = float1.doubleValue(); } return doubles; } }