import java.math.BigInteger;
public class Test {
public static void main(String args[]){
BigInteger a = new BigInteger("1");
BigInteger b = new BigInteger("2");
BigInteger c=a.add(b);//add()方法返回一个a本身+参数的BigInteger类型数
System.out.println(a.toString());
System.out.println(c);
}
}
|