continue
statements with labels.
Labeled continue
statements complicate refactoring and can be confusing.
Example:
void handle(List<String> strs) {
outer:
for (String s: strs) {
for (char ch : s.toCharArray()) {
if ('s' == ch) continue outer;
handleChar(ch);
}
}
}