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