List of usage examples for java.nio IntBuffer wrap
public static IntBuffer wrap(int[] array, int start, int len)
From source file:Main.java
public static void main(String[] args) { IntBuffer bb = IntBuffer.wrap(new int[] { 0, 1, 2, 3, 4, 5, 6 }, 0, 3); bb.put(100);/*from w ww . ja va 2 s. co m*/ System.out.println(Arrays.toString(bb.array())); }