4 ♦Syntax for calls + conditionals?15

Warm ups:

  • Write the syntax pattern for calling a method and branching on its result
  • Write the syntax pattern for an if with no else
  • Write the syntax pattern for nested if statements

Writing Challenge: Define a class called BranchRunner whose main method calls isPositive and prints a different message depending on the returned value.