class WrapperExample2 {
public static void main(String args[]) {
int total = 0;
for (int cnt=0; cnt
Integer obj = new Integer(args[cnt]);
total += obj.intValue();
}
System.out.println(total);
}
}
컴파일 한 후
실행하였습니다.
실행할 때 java WrapperExmple2 2 33 4444 555 44444444444
큰 수를 입력하니 NumberFormatException이 발생하였습니다.
왜 그런건가요?