说明: import java.math.*; class BigIntegerExample { public static void main(String args[]) { BigInteger n1=new BigInteger("987654321987654321987654321"), n2=new BigInteger("123456789123456789123456789"), result=null; result=n1.add(n2);//n1和n2做加法运算 System.
<linfang0908> 上传 | 大小:121kb