Java Float Array Create toFloatArray(String text, String delim)

Here you can find the source of toFloatArray(String text, String delim)

Description

to Float Array

License

Open Source License

Declaration

public static float[] toFloatArray(String text, String delim) 

Method Source Code

//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;
    }
}

Related

  1. toFloatArray(final Object[] array)
  2. toFloatArray(Float[] data)
  3. toFloatArray(Number[] array)
  4. toFloatArray(Object[] arr)
  5. toFloatArray(String str, String separator)
  6. toFloatArray(String[] anArray)
  7. toFloatArrays(double[][] arrays)
  8. toFloatByObject(Object obj)
  9. toFloatMatrix(int[][] m)