The continue Statement

A continue statement must appear within a while,do-while or for loop.

Its execution causes the remainder of the loop body to be skipped - execution skips to the next iteration of the loop.

It is usually appears in the body of an if statement

This form is common:

   for (init; condition; next) {
      statements1;
      if (condition2) continue;
      statements2;
   }

Index