Here you can find the source of toFloatArray(String text, String delim)
public static float[] toFloatArray(String text, String delim)
//package com.java2s; //License from project: Open Source License public class Main { public static float[] toFloatArray(String text, String delim) { String[] list = text.split(delim); float[] ret_ary = new float[list.length]; for (int k = 0; k < list.length; ++k) { ret_ary[k] = Float.parseFloat(list[k]); }/*from w w w . j a va2 s. c o m*/ return ret_ary; } }