Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 메서드
- Java
- do while문
- Interface
- 배열
- for문
- symbol
- 변수
- length
- super
- Photoshop
- if문
- private
- switch문
- 상속
- Singleton
- Override
- 생성자
- After effects
- 형변환
- 반복문
- 멤버변수
- illustrator
- while문
- 클래스
- expand
- 파라미터
- 조건문
- static
- Overload
Archives
- Today
- Total
Ms'Note
MultiEx-5 본문
여러가지 문법의 중첩 사용(for문을 while문으로 변경한 경우)
public class Main05 {
public void main(String[] args) {
int i = 2;
int j = 1;
while(i <= 0) {
while(j < 10) {
int k = i * j;
System.out.println(k);
j++;
}
if(i > 9) {
System.out.println("----------------");
}
i++;
j = 1;
}
}
}
출력 결과
Comments