Here you can find the source of convertStringArrayToFloatArray(String[] num)
Parameter | Description |
---|---|
num | Array of string |
private static float[] convertStringArrayToFloatArray(String[] num)
//package com.java2s; //License from project: Apache License public class Main { /**//from w w w. j ava 2s . com * Convert array of strings to array of float * @param num Array of string * @return array of float */ private static float[] convertStringArrayToFloatArray(String[] num) { if (num != null) { float fArray[] = new float[num.length]; for (int i = 0; i < num.length; i++) { fArray[i] = Float.parseFloat(num[i]); } return fArray; } return null; } }