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;
//from w  ww  .  j a  v  a 2  s .  co m
public class Main {
  public static void main(String[] args) {
    BigInteger numberB = BigInteger.ONE;

  }
}




















Home »
  Java Tutorial »
    java.math »




BigDecimal
BigInteger