I'm very tempted to use "goto" in Java, but as always, goto isn't allowed because of said issue. I will digress from that.

I only know from Java doc here that said "break" keyword works for for...loop, do...while..., and switch...case... only. Anything I can do?

You cannot use goto in Java.

If you want to execute some code _only_ in the VERTICAL case when booleanFlag1 and booleanFlag2 are both true, don't do it this way. This is what you're trying to do, right? Instead, put this code in a separate function or method and call it inside the second `if` clause.

Why can't you do this:<snip>This does the same thing as your code, but doesn't use a goto statement. Unless there is something I'm missing?

If both "booleanFlag1" and "booleanFlag2" are true, I need to execute code in "booleanFlag2" and then execute code in "booleanFlag1". So, the extra "else if" would not be the correct way.

You cannot use goto in Java.

If you want to execute some code _only_ in the VERTICAL case when booleanFlag1 and booleanFlag2 are both true, don't do it this way. This is what you're trying to do, right? Instead, put this code in a separate function or method and call it inside the second `if` clause.

1. I understand that. Hence I was asking if there are any alternatives.2. It's not just VERTICAL case, there are other more cases. And no, it's not. I wanted to execute codes when booleanFlag1 and booleanFlag2 is true, but skip the code in booleanFlag1 and the rest of the code before the "Label". If booleanFlag2 is not true, continue to execute code in booleanFlag1, and call on reflectResponse() before continuing to execute more code.

In your pseudocode just exchange goto through break, that's it.

Longer answer: break will break from the current for/while/switch statement, regardless if it is embedded itself in an other non-loop/switch statement, like an if-statement.