public class BigInteger_01 {
public static void main(String[] args) {
System.out.println("최대 정수 : " + Long.MAX_VALUE);
System.out.println("최소 정수 : " + Long.MIN_VALUE);
BigInteger bigValue1 = new BigInteger("10000000000000000000000000000");
BigInteger bigValue2 = new BigInteger("-999999999999999999999999999999999999999");
BigInteger addResult = bigValue1.add(bigValue2);
BigInteger mulResult = bigValue1.multiply(bigValue2);
System.out.println(addResult);
System.out.println(mulResult);
}
}
'WebStudy > JAVA' 카테고리의 다른 글
접근지정자 및 get/set 매소드를 이용하는 이유 (0) | 2015.06.10 |
---|---|
StringTokenizer (0) | 2015.06.05 |
Network 네트워크 - server <-> client (0) | 2015.06.04 |
Network 네트워크 들어가기 전 토막 상식 - 0 (0) | 2015.06.04 |
특수문자 공백 체크. Pattern, Matcher (0) | 2015.06.03 |