Java Data Type Tutorial - Java BigInteger ONE








Syntax

BigInteger.ONE has the following syntax.

public static final BigInteger ONE

Example

In the following code shows how to use BigInteger.ONE field.

import java.math.BigInteger;

public class Main {
  public static void main(String[] args) {
    BigInteger numberB = BigInteger.ONE;

  }
}