Summary of Control Statements
| Statement | Description |
break | Exits the loop completely. |
continue | Skips the current iteration. |
return | Exits the method (and thus the loop). |
Summary of loop control statements in Java: break, continue, and return.
| Statement | Description |
break | Exits the loop completely. |
continue | Skips the current iteration. |
return | Exits the method (and thus the loop). |