Continue statement in Java
Java continue statement
Unlike break statement, the continue statement doesn't break the loop, whereas, it skips the specific part of the loop and jumps to the next iteration of the loop immediately.
Consider the following example to understand the functioning of the continue statement in Java.
Output:
0 1 2 3 5 1 2 3 5 2 3 5
Comments
Post a Comment