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

Related Topics

break Java Keyword

do Java Keyword

for Java Keyword

while Java Keyword