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