2 ♥Syntax for ints/bools/variables?6

Warm ups:

  • Write the syntax patterns for class and method
  • Write the syntax pattern for a method that returns an int. What about for a boolean?
  • Write a table of operators for ints and what they do. Same for booleans
  • Write the syntax pattern for variable assignment and update.

Writing Challenge: Define a class called IntDemo with two static methods, one that returns an int and one that returns a boolean. Use these methods to demonstrate the syntax for variable assignment/update and any interesting operator behavior that you know of.