The break statement in java breaks the execution flow out of the loop. Continue, on the other hand, skips the current iteration. But both will have an impact on the loop in which it is used. So, how do we come out of the outer loop in case of a nested loop?
This video provides the solution to this situation with Labelled-Break and Labelled-Continue.