Java tutorial
import java.nio.DoubleBuffer; import java.util.Arrays; public class Main { public static void main(String[] args) { DoubleBuffer bb = DoubleBuffer.wrap(new double[] { 98765, 98765 }, 0, 1); bb.rewind(); System.out.println(Arrays.toString(bb.array())); } }