Java BigInteger class

Description

Java BigInteger class

public class Main {
  public static void main(String[] args) {
    java.math.BigInteger x = new java.math.BigInteger("3");
    java.math.BigInteger y = new java.math.BigInteger("7");
    java.math.BigInteger z = x.add(y);
    System.out.println("x is " + x);
    System.out.println("y is " + y);
    System.out.println("z is " + z);
  }//from  w w  w.j  a v a  2 s  .  co  m
}



PreviousNext

Related