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