Java LongBuffer.toString()
Syntax
LongBuffer.toString() has the following syntax.
public String toString()
Example
In the following code shows how to use LongBuffer.toString() method.
import java.nio.LongBuffer;
// ww w.j a va 2 s . c o m
public class Main {
public static void main(String[] args) {
LongBuffer bb = LongBuffer.allocate(10);
bb.put(100L);
System.out.println(bb.toString());
}
}
The code above generates the following result.