5. Control Statements: Part 2; Logical Operators
The wheel is come full circle.
—William Shakespeare
All the evolution we know of proceeds from the vague to the definite.
—Charles Sanders Peirce
Objectives
In this chapter you’ll:
Learn the essentials of counter-controlled repetition.
Use the for
and do
...while
repetition statements to execute statements in a program repeatedly.
Understand multiple selection using the switch
selection statement. ...
Get Java™ How To Program (Early Objects), Tenth 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.