Java tutorial
//package com.java2s; public class Main { public static float[] toFloatList(String str) { String[] strs = str.split(","); float[] floats = new float[strs.length]; for (int i = 0; i < strs.length; i++) floats[i] = Float.valueOf(strs[i]); return floats; } }