Java Float Array to Int floatArray2String(float[] xs)

Here you can find the source of floatArray2String(float[] xs)

Description

float Array String

License

Apache License

Declaration

public static String floatArray2String(float[] xs) 

Method Source Code

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

Related

  1. ArrayFloat2Int(float[] a)
  2. floatArray2String(float[] array)
  3. floatArrayTo16bitPCM(float[] raw)