Assignment Statements and Expressions
February 5th, 2016
Lecture Code
Important Concepts from the Reading
- Assignment statements
- Arithmetic operators: +, -, *, /, %
- The notion of precedence
- Arithmetic shortcuts: ++, --, +=, -=, *=, /=, %=
- Type casting (when necessary)
- The Math class and some of the common methods in it
such as sqrt and abs
- The String class and some of its common methods
such as length and compareTo
- The difference between an accessor method and a mutator method