Skip to content

Commit 17e980f

Browse files
committed
1 parent fbec3e2 commit 17e980f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/loops/continue.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ int x = 5;
1111
while (x > 0) {
1212
if (x == 4) {
1313
x--; // Make sure the loop continues to 3
14+
// When this line is reached it will skip
15+
// all the lines after this in the function
16+
// and immediately go back to the top of the
17+
// loop
1418
continue;
1519
}
1620
IO.println(x + " is a good number");

0 commit comments

Comments
 (0)