Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

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(new double[] { 98765, 12345 });

        System.out.println(bb.arrayOffset());

    }
}