26 lines
601 B
Java
26 lines
601 B
Java
while (condition) {
|
|
...
|
|
if (someCondition) { continue; /* skip to beginning of this loop */ }
|
|
...
|
|
}
|
|
|
|
top: for (int 1 = 0; i < 10; ++i) {
|
|
...
|
|
middle: for (int j = 0; j < 10; ++j) {
|
|
...
|
|
bottom: for (int k = 0; k < 10; ++k) {
|
|
...
|
|
if (top_condition) { continue top; /* restart outer loop */ }
|
|
...
|
|
if (middle_condition) { continue middle; /* restart middle loop */ }
|
|
...
|
|
if (bottom_condition) { continue bottom; /* restart bottom loop */ }
|
|
...
|
|
if (bottom_condition) { continue; /* this will also restart bottom loop */ }
|
|
...
|
|
}
|
|
...
|
|
}
|
|
....
|
|
}
|