Sumary so far
Strings and debugging
- Strings are objects
- Concatenation with + operator
- Lots of useful string manipulation methods in java.lang.String
- Strings are special:
- Don’t need to instantiate;
can initialize by assignment
- Can usually compare with
==, but don’t rely on it
- toString() and debugging main()
- Define a toString() method
for debugging each class