Java continue statement can be used in any of the loop structures. It causes a loop to jump to the next iteration of the loop immediately. In the  for loop, the continue keyword causes control to jump to the update statement quickly. In the  while loop or  do-while loop, control immediately jumps to the Boolean expression.

Java Continue Statement

You have already seen a break statement used in the earlier chapter of this tutorial. It was used to “jump out” of the switch statement.

The break statement can also be used to jump out of the loop.

Continue statement is mostly used inside loops. Whenever it is encountered inside the loop, control directly jumps to the beginning of the loop for the next iteration, skipping the execution of statements inside the loop’s body for the current iteration.

See the following syntax.

continue;

#java #java continue #continue statement

Java Continue Statement Example | Continue Statement Tutorial
2.50 GEEK