List of utility methods to do Float Array to String
String | floatArrayToString(final float[] floatArray) Returns a string representation of the given float array. final StringBuilder stringBuilder = new StringBuilder(); boolean isFirst = true; stringBuilder.append('['); for (int i = 0; i < floatArray.length; i++) { if (isFirst) { isFirst = false; } else { stringBuilder.append(", "); ... |
String | floatArrayToString(float[] array) float Array To String StringBuilder builder = new StringBuilder(); for (int i = 0; i < array.length; i++) { if (i > 0) { builder.append(','); builder.append(array[i]); return builder.toString(); ... |
String | floatArrayToString(String tag, float[] arr) float Array To String StringBuilder builder = new StringBuilder(); if (tag != null) { builder.append("\"" + tag + "\"" + ":"); builder.append("["); for (int i = 0, len = arr.length; i < len - 1; i++) builder.append(arr[i] + ","); if (arr.length > 0) ... |
String[] | floats2strs(float[] fs) floatsstrs if (fs == null || fs.length == 0) return EMPTY_STRING_ARRAY; String[] ss = new String[fs.length]; for (int i = 0; i < ss.length; i++) { ss[i] = Float.toString(fs[i]); return ss; |