We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd655e1 commit 1cbf074Copy full SHA for 1cbf074
Basics/ControlStatment/Continue.java
@@ -0,0 +1,17 @@
1
+//Java Program to illustrate the use of continue statement
2
+//inside an inner loop
3
+public class ContinueExample2 {
4
+ public static void main(String[] args) {
5
+ //outer loop
6
+ for(int i=1;i<=3;i++){
7
+ //inner loop
8
+ for(int j=1;j<=3;j++){
9
+ if(i==2&&j==2){
10
+ //using continue statement inside inner loop
11
+ continue;
12
+ }
13
+ System.out.println(i+" "+j);
14
15
16
17
0 commit comments