Here you can find the source of printArray(float[] spectrum)
public static void printArray(float[] spectrum)
//package com.java2s; //License from project: Open Source License public class Main { public static void printArray(float[] spectrum) { if (spectrum == null) { System.out.println("null"); return; }//from w w w . j a v a2 s . com System.out.print("["); for (int i = 0; i < (spectrum.length - 1); i++) System.out.print(spectrum[i] + ", "); if (spectrum.length > 0) System.out.println(spectrum[spectrum.length - 1] + "]"); } }