Java tutorial
import java.nio.DoubleBuffer; import java.util.Arrays; public class Main { private static final int BSIZE = 1024; public static void main(String[] args) { DoubleBuffer bb = DoubleBuffer.allocate(BSIZE); bb.put(0, 98765); System.out.println(Arrays.toString(bb.array())); } }