일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- WiFi
- 윈도우10
- 세나
- JEUS6.0
- 다윈스트리밍서버
- ubuntu
- gson
- VBA
- IT
- jQuery
- JEUS
- Clash Royale
- Sculpt Erogonomic Desktop
- 세븐나이츠
- IT 인코딩 encoding
- 붕괴3
- WebtoB
- 다윈 스트리밍 서버
- 하스스톤
- bluestack
- Http Live Streaming Server
- 모바일게임
- 초대장
- 윈도우 10
- 간접 표현식
- 처비
- Windows 10
- 간접표현식
- 클래시 로얄
- HTML
Archives
- Today
- Total
공책
반복 본문
for 문
for (int cnt = 0; cnt < 10; cnt ++){
System.out.println(cnt);
}
int arr[] = { 10, 20, 30, 40, 50};
for (int cnt = 0; cnt < arr.length; cnt++){
System.out.println(arr[cnt]);
}
//배열의 길이만큼 반복
향상된 for문
for( int num:arr){
System.out.println(num);
}
break를 이용 반복문 빠져나가기
for (int row = 0; row < 3; row++){
for (int col = 0; col < 5; col++){
System.out.println("("+row+","+col+")");
if((row==1)&&(col==3))
break;
}
}
Comments