this question has answer here:
- breaking out of nested loops in java 30 answers
- breaking out of loop in java [closed] 5 answers
in java, direct method of getting out of while loop inside while loop , inside loop? structure should this:
for{ . . while{ . . . while{ . . <stuck here. want break free of loops>; } } }
use label , break
here: while (...) { (...) { if (...) break here; } }
see https://docs.oracle.com/javase/tutorial/java/nutsandbolts/branch.html