Java Arena

Module 6

Conditions and logic

Conditions as true-or-false values. Boolean variables, the remainder operator %, comparing text with equals, combining conditions with && || and !, and choosing the order of conditions. The end of MOOC part 1.

Steps

  1. Booleans in conditions
  2. The remainder operator %
  3. Comparing text with equals
  4. And, or, not
  5. Most specific condition first
  6. Challenge: price brackets