Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.nio.LongBuffer;
import java.util.BitSet;

public class Main {

    public static void main(String[] args) {

        LongBuffer byteBuffer = LongBuffer.wrap(new long[] { 1L, 2L, 3L });
        BitSet bitset1 = BitSet.valueOf(byteBuffer);

        // print the sets
        System.out.println("Bitset1:" + bitset1);

    }
}