代码如下:
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) { Scanner cin = new Scanner(new BufferedInputStream(System.in)); String add1 = cin.nextLine(); String add2 = cin.nextLine(); java.math.BigInteger res1 = new java.math.BigInteger(add1); java.math.BigInteger res2 = new java.math.BigInteger(add2); java.math.BigInteger result = res1.add(res2); System.out.println(result); } }
**喜欢的朋友请关注我,另欢迎阅读我的电子书?
百度阅读:?
http://yuedu.baidu.com/ebook/284b41a1e518964bce847c90?pn=1&click_type=10010002&rf=http%3A%2F%2Fblog.csdn.net%2Fyayun0516%2Farticle%2Fdetails%2F51277821?
亚马逊:?
http://www.amazon.cn/Android-%E7%99%BE%E6%88%98%E7%BB%8F%E5%85%B8-%E5%8D%B7I-%E5%BC%A0%E4%BA%9A%E8%BF%90/dp/B01ER5R9U2?ie=UTF8&keywords=Android%E7%BB%8F%E5%85%B8&qid=1461806976&ref_=sr_1_6&s=digital-text&sr=1-6**