List of usage examples for java.nio DoubleBuffer wrap
public static DoubleBuffer wrap(double[] array, int start, int len)
From source file:Main.java
public static void main(String[] args) { DoubleBuffer bb = DoubleBuffer.wrap(new double[] { 98765, 98765 }, 0, 1); bb.rewind();//from w ww . jav a 2 s . c o m System.out.println(Arrays.toString(bb.array())); }