Using a labeled break:
mainloop:
for(){
for(){
if (some condition){
break mainloop;
}
}
}
Also See
- “loop:” in Java code. What is this, and why does it compile?
- Documentation
Using a labeled break:
mainloop:
for(){
for(){
if (some condition){
break mainloop;
}
}
}
Also See