What if I have nested loops, and I want to break out of all of them at once?
while (true) { // ... while (shouldCont) { // ... while (sho
Extract your nested loops into a function and then you can use return to get out of the loop from anywhere, rather than break.