4. Java SE 는 가장 기본적인 API 를 포함EE, ME => Java SE + 개별 API
5. Java 의 기본문법도 java.lang API 에 속함String, System, Thread
6.
7. API 보기 java.lang.Math Code : Math.abs(-200)Output : 200 static intabs(int a) Returns the absolute value of an int value.
8. API 보기 java.util.Random Code : new Random().nextInt(100);Output : 0~99 intnextInt() Returns the next pseudorandom, uniformly distributed int value from this random number generator's sequence. intnextInt(int n) Returns a pseudorandom, uniformly distributed int value between 0 (inclusive) and the specified value (exclusive), drawn from this random number generator's sequence.
10. My Simple Calculator 공백을 기준으로 각 부분을 나눈다. 실수/연산자/실수 3개의 항목이 있는지 검사한다. 계산 가능하게 실수로 변환한다. (문자열+문자열) 연산자에 맞는 계산을 해서 결과값을 저장한다. 결과값을 출력한다. 3 + 15 13 compare 9
11. My Simple Calculator 실수가 아닌 문자열을 넣어본다. > Number Format Exception 매우 큰 수를 어떻게 처리할 수 있을까? > BigDecimal API