# continue Java Keyword

The continue keyword is used to skip to the next iteration of a for, while, or do loop.

## Examples

      for (i=0; i<max; i++)
      {
         <statements>
         if (<done with this iteration>)
         {
            continue;
         }
         <statements>
      }

## Remarks

- continue always skips to the next iteration of the innermost enclosing while, for or do statement.

Related Topics

break Java Keyword

do Java Keyword

for Java Keyword

while Java Keyword