import java.math.BigInteger; public class BigIntegerTest { public static void main (String args[]) { System.out.println ("Max value for integer in Java " + Integer.MAX_VALUE); System.out.println ("Min value for integer in Java " + Integer.MIN_VALUE); BigInteger a = new BigInteger ("2434323243234356666666666664"); BigInteger b = new BigInteger ("3334321213232888888882"); BigInteger c = a.add(b); System.out.println (a + " + " + b + " = " + c); c = a.subtract(b); System.out.println (a + " - " + b + " = " + c); c = a.multiply(b); System.out.println (a + " * " + b + " = " + c); c = a.divide(b); System.out.println (a + " / " + b + " = " + c); c = a.mod(b); System.out.println (a + " % " + b + " = " + c); c = c.pow(100); System.out.println (a + " ^ " + 100 + " = " + c); } }