java - Breaking out off a WHILE loop which is inside a FOR LOOP -


this question has answer here:

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