스위치 문

Jmnote (토론 | 기여)님의 2014년 5월 16일 (금) 01:11 판 (새 문서: ;switch statement; switch ;switch 문 ;case 문 ==Java== <source lang='Java'> switch (age) { case 1: System.out.printf("You're one."); break; case 2: System.out.printf("You're tw...)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)
switch statement; switch
switch 문
case 문

1 Java

switch (age) {
  case 1: System.out.printf("You're one."); break;
  case 2: System.out.printf("You're two."); break;
  case 3: System.out.printf("You're three."); break;
  case 4: System.out.printf("You're four."); break;
  default: System.out.printf("You're neither!"); break;
}

2 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}