Java break and continue
Java break
The break statement can be used to jump out of a loop.
Java Continue
The continue statement breaks one iteration (in the loop), if a specified condition occurs, and continues with the next iteration in the loop.