Created
April 17, 2015 08:36
-
-
Save Baekjoon/a1bacdc4e015980e9aae to your computer and use it in GitHub Desktop.
java-biginteger
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; | |
import java.math.*; | |
public class Main { | |
public static void main(String args[]) { | |
BigInteger a = new BigInteger("9223372036854775807"); | |
BigInteger b = new BigInteger("9223372036854775808"); | |
BigInteger sum = a.add(b); | |
System.out.println(sum.toString()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment