Example usage for java.nio LongBuffer toString

List of usage examples for java.nio LongBuffer toString

Introduction

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

Prototype

public String toString() 

Source Link

Document

Returns a string representing the state of this long buffer.

Usage

From source file:Main.java

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

}