Skip to Main Content
Java For Dummies, 8th Edition
book

Java For Dummies, 8th Edition

by Barry Burd
April 2022
Beginner content levelBeginner
512 pages
11h 32m
English
For Dummies
Content preview from Java For Dummies, 8th Edition

Chapter 5

Controlling Program Flow with Decision-Making Statements

IN THIS CHAPTER

Bullet Writing statements that choose between alternatives

Bullet Forming logical conditions

Bullet Putting statements inside one another

Bullet Choosing among many alternatives

The TV show Dennis the Menace aired on CBS from 1959 to 1963. I remember one episode in which Mr. Wilson was having trouble making an important decision. I think it was something about changing jobs or moving to a new town. Anyway, I can still see that shot of Mr. Wilson sitting in his yard, sipping lemonade, and staring into nowhere for the whole afternoon. Of course, the annoying character Dennis was continually interrupting Mr. Wilson’s peace and quiet. That’s what made this situation funny.

What impressed me about this episode (the reason I remember it clearly, even now) was Mr. Wilson’s dogged intent in making the decision. This guy wasn’t going about his everyday business, roaming around the neighborhood while thoughts about the decision wandered in and out of his mind. He was sitting quietly in his yard, making marks carefully and logically on ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Beginning Programming with Java For Dummies, 6th Edition

Beginning Programming with Java For Dummies, 6th Edition

Barry Burd
Learning Java, 5th Edition

Learning Java, 5th Edition

Marc Loy, Patrick Niemeyer, Daniel Leuck

Publisher Resources

ISBN: 9781119861645Purchase Link