Here you can find the source of floatArray2String(float[] xs)
public static String floatArray2String(float[] xs)
//package com.java2s; //License from project: Apache License public class Main { public static String floatArray2String(float[] xs) { StringBuilder sb = new StringBuilder(); for (int i = 0; i < xs.length; ++i) { sb.append(Float.toString(xs[i])); if (i < xs.length - 1) { sb.append(","); }/* w ww . j ava 2 s. c o m*/ } return sb.toString(); } }