{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Chapter4 Notes - Ch 4 Outline Boolean Expressions The if...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
1 Ch 4: Outline Boolean Expressions • The if Statement Comparing Data • The switch Statement • The while Statement • Iterators • The do Statement • The for Statement 4.1 – Flow of Control Unless specified otherwise, the order of statement execution through a method is linear: one statement after another in sequence Some programming statements allow us to decide whether or not to execute a particular statement execute a statement over and over, repetitively These decisions are based on boolean expressions (or