~/ 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/e17f6566-5fd0-4dc0-a6b0-8b23459362fb/flashcard utf-8 LF