Java FloatBuffer to String printFloatBuffer(FloatBuffer fb)

Here you can find the source of printFloatBuffer(FloatBuffer fb)

Description

print Float Buffer

License

Open Source License

Declaration

public static void printFloatBuffer(FloatBuffer fb) 

Method Source Code

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

Related

  1. print(FloatBuffer buffer)
  2. show(final FloatBuffer buffer)
  3. toString(FloatBuffer buffer)
  4. toString(FloatBuffer buffer)
  5. toString(FloatBuffer floatBuffer)