Chapter 5. Control Statements: Part 2
The wheel is come full circle.
—William Shakespeare —Robert Frost
All the evolution we know of proceeds from the vague to the definite.
—Charles Sanders Peirce
Objectives
In this chapter you’ll learn:
• To use the for
and do...while
repetition statements to execute statements in a program repeatedly.
• To understand multiple selection using the switch
selection statement.
• To use the break
and continue
program control statements to alter the flow of control.
• To use the logical operators to form complex conditional expressions in control statements.
5.1 Introduction
5.2 Essentials of Counter-Controlled Repetition
Get Java™ for Programmers: Deitel Developer Series, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.