Java tutorial
//package com.java2s; import java.util.ArrayList; public class Main { public static float[] toFloatArray(ArrayList<Float> floats) { float returner[] = new float[floats.size()]; for (int i = 0; i < returner.length; i++) { returner[i] = floats.get(i); } return returner; } }