Here you can find the source of printFloatBuffer(FloatBuffer fb)
public static void printFloatBuffer(FloatBuffer fb)
//package com.java2s; //License from project: Open Source License import java.nio.FloatBuffer; public class Main { public static void printFloatBuffer(FloatBuffer fb) { fb.rewind();/* w ww . j ava 2s . com*/ while (fb.hasRemaining()) { System.out.print(fb.get() + ", "); } System.out.println(); } }