In Chapter 5, we discussed Java’s
continue statements, which enable programmers to alter the flow of control in control statements. Java also provides the labeled
continue statements for cases in which a programmer needs to conveniently alter the flow of control in nested control statements. This appendix demonstrates the labeled
continue statements with examples using nested
break statement presented in Section 5.8.1 enables a program to break out of the
switch in which the
break statement appears. Sometimes these control statements are nested in other iteration statements. A program ...