Java tutorial
import java.nio.LongBuffer; public class Main { public static void main(String[] args) { LongBuffer bb = LongBuffer.allocate(10); bb.put(new long[] { 100, 123, 123, 123, 1 }, 0, 1); System.out.println(bb.toString()); } }