Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.math.BigInteger;

public class Main {

    public static void main(String[] args) {

        BigInteger bi = new BigInteger("10");

        Boolean b1 = bi.testBit(2);
        Boolean b2 = bi.testBit(3);
        // print b1, b2 values
        System.out.println(b1);
        System.out.println(b2);
    }
}