코드 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
- 클래스
- Create
- 어노테이션
- spring
- 음식
- Android
- 자바
- jdbc
- js
- 스프링
- Class
- 하기
- Delete
- Default
- 안드로이드
- UTF-8
- 생성
- synchronized
- 사용
- java
- Server
- Controller
- mybatis
- iNT
- 연결
- jsp
- 라이브러리
- 종류
- mysql
- nsis
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 | 31 |