LongBuffer.put(LongBuffer src) has the following syntax.
public LongBuffer put(LongBuffer src)
In the following code shows how to use LongBuffer.put(LongBuffer src) method.
import java.nio.LongBuffer; /*w w w . j a v a 2s. co m*/ public class Main { public static void main(String[] args) { LongBuffer bb = LongBuffer.allocate(10); bb.put(1,100L); System.out.println(bb.arrayOffset()); } }
The code above generates the following result.