Example usage for java.nio ShortBuffer toString

List of usage examples for java.nio ShortBuffer toString

Introduction

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

Prototype

public String toString() 

Source Link

Document

Returns a string representing the state of this short buffer.

Usage

From source file:Main.java

public static void main(String[] args) {
    ShortBuffer bb = ShortBuffer.allocate(10);
    bb.put((short) 100);
    System.out.println(bb.toString());

}

From source file:Main.java

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

}