public static float[] floatArrayCopyOf(CollectionNumber coll) {
        float[] data = new float[coll.size()];
        IteratorNumber iter = coll.iterator();
        int index = 0;
        while (iter.hasNext()) {
            data[index] = iter.nextFloat();
            index++;
        }
        return data;
    }
public static float [ ] floatArrayCopyOf ( CollectionNumber coll ) { float [ ] data = new float [ coll . size ( ) ] ; IteratorNumber iter = coll . iterator ( ) ; int index = 0 ; while ( iter . hasNext ( ) ) { data [ index ] = iter . nextFloat ( ) ; index ++ ; } return data ; }
Copies the content of the collection to an array.

@param coll the collection
@return the array