Here you can find the source of toFloatArray(List
private static float[] toFloatArray(List<String> values)
//package com.java2s; import java.util.List; public class Main { private static float[] toFloatArray(List<String> values) { float[] fs = new float[values.size()]; for (int i = 0; i < fs.length; i++) { fs[i] = Float.parseFloat(values.get(i)); }/*from www. ja v a2 s .c om*/ return fs; } }