Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.nio.LongBuffer;
import java.util.Arrays;

public class Main {
    public static void main(String[] args) {
        LongBuffer longBuffer = LongBuffer.allocate(10);
        longBuffer.put(100);

        longBuffer.rewind();

        LongBuffer longBuffer2 = longBuffer.slice();

        System.out.println(longBuffer2.equals(longBuffer2));

    }
}