Java FloatBuffer to String print(FloatBuffer buffer)

Here you can find the source of print(FloatBuffer buffer)

Description

Utility method to print a float buffer

License

Open Source License

Parameter

Parameter Description
buffer - the float buffer to print to System.out

Declaration

public static void print(FloatBuffer buffer) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.nio.FloatBuffer;

public class Main {
    /**//from ww  w .  j a v  a 2s  .c  o  m
     * Utility method to print a float buffer
     *
     * @param buffer - the float buffer to print to System.out
     */
    public static void print(FloatBuffer buffer) {
        for (int i = 0; i < buffer.capacity(); i++) {
            System.out.print(buffer.get(i) + " ");
        }
        System.out.println("");
    }
}

Related

  1. printFloatBuffer(FloatBuffer fb)
  2. show(final FloatBuffer buffer)
  3. toString(FloatBuffer buffer)
  4. toString(FloatBuffer buffer)