Here you can find the source of floatArrayToString(String tag, float[] arr)
public static String floatArrayToString(String tag, float[] arr)
//package com.java2s; //License from project: Open Source License public class Main { public static String floatArrayToString(String tag, float[] arr) { StringBuilder builder = new StringBuilder(); if (tag != null) { builder.append("\"" + tag + "\"" + ":"); }// w w w . ja va 2 s.c o m builder.append("["); for (int i = 0, len = arr.length; i < len - 1; i++) builder.append(arr[i] + ","); if (arr.length > 0) builder.append(arr[arr.length - 1]); builder.append("]"); return builder.toString(); } }