LongBuffer.get() has the following syntax.
public abstract long get()
In the following code shows how to use LongBuffer.get() method.
//from w w w . j a v a2s .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.