| 1 + 3 * 4 |
| "Hello" |
| "University Dr |
| 1 + "hi" |
| class Armadillo { int weight; boolean wasRunOver; String name; Armadillo( int weight, boolean wasRunOver, String name) { this.weight = weight; this.wasRunOver = wasRunOver; this.name = name; } }
|
| new Armadillo( 3, false, "Steady") |
| new Armadillo( 15, true, "Speedy") |
| new Armadillo( true, "Yogi") |
| new Armadillo(15, true, "Speedy").weight |
| new Armadillo(3, false, "Steady").dead |
| To complete this lab, you may
need to compare Strings. Here are two operations that allow Strings to
be compared, assume that 'first' and 'second' are Strings //compare two Strings to see if they are exactly the same first.equals(second) == true //compare two Strings to see if they are the same, if //capitalization is ignored first.equalsIgnoreCase(second) == true |