Java tutorial
import java.nio.IntBuffer; public class Main { public static void main(String[] args) { IntBuffer bb = IntBuffer.allocate(10); bb.put(100); bb.rewind(); System.out.println(bb.get(0)); } }