Java tutorial
//package com.java2s; public class Main { public static float[] fromFloatString(String string) { String[] strings = string.replace("[", "").replace("]", "").split(", "); float result[] = new float[strings.length]; for (int i = 0; i < result.length; i++) { result[i] = Float.parseFloat(strings[i]); } return result; } }