Causes the remaining portion of the enclosing for, while or do-while loop body to be skipped.
Used when it is otherwise awkward to ignore the remaining portion of the loop using conditional statements.
Syntax
continue ;
Explanation
The continue statement causes a jump, as if by goto, to the end of the loop body (it may only appear within the loop body of for, while, and do-while loops).
For while loop, it acts as.
while (/* ... */) {
// ...
continue; // acts as goto contin