You have already seen the break statement used in an earlier chapter of this video series. It was used to "jump out" of a switch statement.
The break statement can also be used to jump out of a loop.
The continue statement breaks one iteration (in the loop), if a specified condition occurs, and continues with the next iteration in the loop.
Search Terms:
break and continue in java
break and continue statement
break statement in java
continue statement in java
difference between break and continue
difference between break and continue in java
in java control statements break continue return try-catch-finally and assert belongs to