Here you can find the source of toFloatArray(final List
public static final float[] toFloatArray(final List<Float> pItems)
//package com.java2s; import java.util.List; public class Main { public static final float[] toFloatArray(final List<Float> pItems) { final float[] out = new float[pItems.size()]; for (int i = out.length - 1; i >= 0; i--) { out[i] = pItems.get(i);//from w w w. jav a 2 s . com } return out; } }