Example usage for java.nio IntBuffer toString

List of usage examples for java.nio IntBuffer toString

Introduction

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

Prototype

public String toString() 

Source Link

Document

Returns a string represents of the state of this int buffer.

Usage

From source file:Main.java

public static void main(String[] args) {
    IntBuffer bb = IntBuffer.allocate(10);
    bb.put(100);/*from  www .java2 s . com*/
    System.out.println(bb.toString());

}

From source file:Main.java

public static void main(String[] args) {
    IntBuffer bb = IntBuffer.allocate(10);
    bb.put(new int[] { 100, 123, 123, 123, 1 }, 0, 1);
    System.out.println(bb.toString());

}