Skip to content

Instantly share code, notes, and snippets.

@DrAzraelTod
Created September 2, 2014 10:58
Show Gist options
  • Select an option

  • Save DrAzraelTod/224c056f0a886f646563 to your computer and use it in GitHub Desktop.

Select an option

Save DrAzraelTod/224c056f0a886f646563 to your computer and use it in GitHub Desktop.
How to break nested loops in Java?
for (BArray a: a_array) {
C find_me = null;
b_loop:
for (CArray b : a) {
for (C c: b) {
if (c.is_searched_result) {
find_me = c;
continue b_loop;
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment