java 类与对象基础
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做加法运算
下载地址
用户评论