BigInteger.ONE in Java

BigInteger.ONE: This is available in java.math.BigInteger class of Java.

Syntax:

BigInteger java.math.BigInteger.ONE

The BigInteger constant one.

Approach

Java

import java.math.BigInteger;

public class BigIntegerONE {
    public static void main(String[] args) {

        System.out.println(BigInteger.ONE);
    }
}

Output:

1

No comments:

Post a Comment