List of usage examples for java.nio LongBuffer wrap
public static LongBuffer wrap(long[] array, int start, int len)
From source file:Main.java
public static void main(String[] args) { LongBuffer bb = LongBuffer.wrap(new long[] { 0, 1, 2, 3, 4, 5, 6 }, 0, 3); bb.put(100L);// w w w.j a v a 2 s.c o m System.out.println(Arrays.toString(bb.array())); }