코드 Switch1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 android:textOn=”On” 상태가 On일 경우에 표시되는 문자열이다. android:textOff=”Off” 상태가 Off일 경우에 표시되는 문자열이다. android:checked=”true” true일 경우 상태를 On으로 설정하며 false일 때는 Off로 설정한다. ———————————————- swSound = (Switch)findViewById(R.id.swSound); txtStatus = (TextView)findViewById(R.id.txtStatus); swSound.setOnCheck..
switch문은 witch 문 본문은 일련의 case 레이블과 선택적 default 레이블로 구성됩니다.case 문에서는 어떤 두 상수 식도 동일한 값으로 계산될 수 없습니다. default 레이블은 한 번만 나타날 수 있습니다. int a = 1; switch ( a ) { // 비교할 값 을 () 안에 작성case 1: //case 의 1값과 a가 서로 같으면 1 출력System.out.println("1");break; //break는 만나면 switch 종료 만약 없으면 break만날때 까지 출력case 2:System.out.println("2");break; default: System.out.println("3");break;} 출력 : 1
- Total
- Today
- Yesterday
- 하기
- 생성
- Server
- mybatis
- Default
- 라이브러리
- 자바
- iNT
- 클래스
- Delete
- mysql
- js
- UTF-8
- Class
- Controller
- Create
- nsis
- 안드로이드
- 어노테이션
- 스프링
- Android
- 사용
- synchronized
- jsp
- spring
- java
- 음식
- jdbc
- 연결
- 종류
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |