Import Java.math.BigInteger;
1. Create a new object
Scanner in = new Scanner (system.in);
BigInteger x1 = new BigInteger ("11"); Create a new object
BigInteger x2 = In.nextbiginteger ();//Keyboard input
BigInteger y = x1.abs (); Take absolute value
BigInteger y2 = x1.add (y); X+y
int x3 = Y.compareto (x1); X and y Comparison < = = > return -1,0,1 respectively
Boolean x4 = (Y.compareto (x1) <= 0); Determine if y <=x 0 is fixed, the <= symbol can be changed arbitrarily
BigInteger x5 = y.divide (x1); Y/x1
BigInteger x6 = y.multiply (x1);//Y*x1
Double x6 = X2.doublevalue (); Convert x2 to double type, convert to int with intvalue ()
BigInteger x7 = X2.GCD (x1);//return ABS (x2) and ABS (x1) Greatest common divisor
BigInteger x8 = x2.negate ();//Return-X2
String x9 = X2.tostring ();//convert X2 to String
BigInteger y3 = X2.reamainder (x1);//Return x2%x1
BigInteger y4= X1.pow (2);//POW (int exponent) returns the this^exponent whose value is (BigInteger).
Usage of the Java BigInteger class