control flow in Java
<b>Advanced flow control usage</b> | | Allows optional labels | Allows break statement | Allows continue statement | ----- | ----- | ----- | ----- | if | Yes * | No | No | while | Yes | Yes | Yes | do while | Yes | Yes | Yes | for | Yes | Yes | Yes | switch | Yes | Yes | No \* Labels are allowed for any block statement, including those that are preceded with an if-then statement.