Computer Science 15-100 (Sections T & U), Fall 2007
Class Notes, Day 8: Tue 25-Sep-2007
Logistics
Topic Outline:
c) Logical Operators (!, &&, ||)
d) Truth Tables and Logical Operators
e) Short-Circuit Evaluation
b) The "if-else" statement
c) Aside: A Block { ... } is a Statement!
See If Statement syntax diagram on p. 218
d) The "if-else-if-...-else" construct
e) Nested "if" statements
f) The "dangling-else" problem
a) Comparing Floats and Doubles
b) Comparing Characters
c) Comparing Objects (== versus .equals())
d) Comparing Strings with compareTo()
Carpe diem!