Example usage for java.nio DoubleBuffer toString

List of usage examples for java.nio DoubleBuffer toString

Introduction

In this page you can find the example usage for java.nio DoubleBuffer toString.

Prototype

public String toString() 

Source Link

Document

Returns a string representing the state of this double buffer.

Usage

From source file:Main.java

public static void main(String[] args) {
    DoubleBuffer bb = DoubleBuffer.allocate(BSIZE);

    bb.put(98765);/*from w w w .  j  av a 2  s . c o  m*/

    DoubleBuffer bb1 = bb.asReadOnlyBuffer();

    System.out.println(bb1.toString());

}

From source file:Main.java

public static void main(String[] args) {
    DoubleBuffer bb = DoubleBuffer.allocate(BSIZE);

    bb.put(98765);/*w  w w . ja v  a  2 s . c  om*/
    System.out.println(bb.toString());

}