Monday, 8 January 2024

BigInteger class is not in java.util.*
Hence you have to import it

import java.math.BigInteger;

public class MyFirstClass {

    public static void main(String[] args) {

        BigInteger sm = new BigInteger("4");

        System.out.println(sm);

    }

}


No comments:

Post a Comment

Good thoughtful question on Binary search on answers

Problem link:  https://leetcode.com/problems/maximize-score-of-numbers-in-ranges/description/ Solution: //import java.util.Arrays; class So...