IntBuffer.put(int[] src) has the following syntax.
public final IntBuffer put(int[] src)
In the following code shows how to use IntBuffer.put(int[] src) method.
import java.nio.IntBuffer; //from www . java2s . c om public class Main { public static void main(String[] args) { IntBuffer bb = IntBuffer.allocate(10); bb.put(new int[]{100,123}); System.out.println(bb.arrayOffset()); } }
The code above generates the following result.