Anyway, here it is, with all its beauty:
outerloop: for(int i = 0; i < 20; i++) {
for(int j = 0; j < 10; j++) {
if(i == 10) {
break outerloop;
}
}
}
Yes, it's that simple. Who knew you could label loops in Java.
No comments:
Post a Comment