BigInteger b1=new BigInteger("1000000000000000");
BigInteger b2=new BigInteger("9000000000000000");
//四则运算
//加法
System.out.println(b1.add(b2));
//减法
System.out.println(b2.subtract(b1));
//乘法
System.out.println(b1.multiply(b2));
//除法
System.out.println(b1.divide(b2));
总结:这是加减乘除方式
原文:https://www.cnblogs.com/kun123/p/12096680.html