Java Tutorials

Continue Keyword in Java

The continue keyword is used to skip to the next iteration of a for, while, or do loop. · continue always skips to the next iteration of the innermost enclosing while, for or do statement.
Examples
for (i=0; i
if ()
{
continue;
}

}





No comments:

Post a Comment