List of usage examples for java.nio DoubleBuffer slice
public abstract DoubleBuffer slice();
From source file:Main.java
public static void main(String[] args) { DoubleBuffer bb = DoubleBuffer.allocate(BSIZE); bb.put(98765);//from ww w .j av a 2s. c om DoubleBuffer bb1 = bb.slice(); System.out.println(Arrays.toString(bb1.array())); }