4 ♥Syntax for conditionals (e.g. ifs)?14

Warm ups:

  • Write the syntax pattern for an if statement
  • Write the syntax pattern for an if-else statement
  • Write a boolean expression using a comparison and a logical operator
  • Write a short-circuit expression using && and using ||

Writing Challenge: Define a class called Checker with a static method that demonstrates using a conditional to branch and return different boolean values.