Here you can find the source of printFloatArray(float[] arr)
public static void printFloatArray(float[] arr)
//package com.java2s; //License from project: Open Source License public class Main { public static void printFloatArray(float[] arr) { StringBuilder sb = new StringBuilder("Length: "); sb.append(arr.length);/* w w w. j a va 2 s .co m*/ sb.append("\n"); for (int i = 0; i < arr.length; i++) { if (i > 0) { sb.append(", "); } sb.append(arr[i]); } System.out.println(sb.toString()); } }