Java Continue with Label Statement Tutorial
A CONTINUE statement inside a loop or iteration in Java causes the program control to go to the beginning of the loop. Next iteration of the loop continues as usual. A CONTINUE statement can be used only with Loops. If you use, you get the error "continue cannot be used outside of a loop".
There are two types of CONTINUE statements.