經安全檢測,此網站為安全網站,請放心前往原始網址!

Breaking out of nested loops in Java - Stack Overflow

I've got a nested loop construct like this: for (Type type : types) { for (Type t : types2) { if (some condition) { // Do something and break... break; // Br... ... (EDIT: Like other answerers, I'd definitely prefer to put the inner loop in a different me

stackoverflow.com

網址安全性掃描由 google 提供