-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathContinue.java
More file actions
17 lines (17 loc) · 657 Bytes
/
Copy pathContinue.java
File metadata and controls
17 lines (17 loc) · 657 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//Java Program to illustrate the use of continue statement
//inside an inner loop
public class Continue {
public static void main(String[] args) {
//outer loop
for(int i=1;i<=3;i++){
//inner loop
for(int j=1;j<=3;j++){
if(i==2&&j==2){
//using continue statement inside inner loop
continue;
}
System.out.println(i+" "+j);
}
}
}
}