- 코드의 구성요소 (값, 식, 문)
- 메서드 호출식

코드의 구성요소
1. 값 : 숫자, 문자, 문자열, 논리
2. 식 : 연산, 변수, 메서드호출 -> 값으로 치환(void 포함) | 값이 없을 수도 있음
3. 문 : 제어문 (조건문 if/switch, 반복문 while/for/foreach) -> { }가 옴
--> 자바에서는 값으로 치환되지 않음 | for(,,)/for(:)
[난수 생성 연습]
- Math.random();

[주사위 게임]
- 디버깅 코드
- 주석
- 약간의 if ~ else if 문


- 정적 방식
- 동적 방식 : 사용자가 다른 값을 입력할 수 있음








<여러 입력폼 타입 넘겨보기>
- <input name=" " type=" ">

<input type="text">
<input type="password">
<input type="number" min=" " max=" " step=" ">
<input type="date">
<input type="color">
<input type="range" min=" " max=" " step=" ">
<input type="radio" value=" ">
<input type="checkbox" value=" ">
<select>
<option value=" "> </option>
</select>
<textarea rows=" " cols=" "> </textarea>
<button type="submit"> </button>

request.getParameter(" ");
Integer.parseInt( );
String[ ] x = request.getParameterValues(" ");

[가위바위보 만들기]
- <form action="/ / ">
- int x = (int)(Math.random());


- if( .equals( )) {
}
- selected="selected"
- <div> </div>

[시험 결과 출력]



> textAction3.jsp 틀림!!



> textAction3.jsp 수정본

