static ArrayList floatArrayToList(float[] a) { if (a == null) null; ret floatArrayToList(a, 0, a.length); } // no range checking on from/to in the interest of speed static ArrayList floatArrayToList(float[] a, int from, int to) { if (a == null) null; ArrayList l = new(to-from); for (int i = from; i < to; i++) l.add(a[i]); ret l; }