~/ learn/ java-from-zero/ cards/ break, continue & labels
1 of 2

Type a labelled break

Type a labelled break

Answer

break outer;

With a label, break exits the labelled loop rather than just the innermost one — the clean way out of nested loops.

space flip · ← → navigate · esc to exit
NORMAL ~/memra/library/e5b5d7b5-0da2-43fc-a3dc-0d88be881a61/flashcard utf-8 LF