previous
|
start
|
next
If Statement: Example 2
To compare Strings or any class type, use the
compareTo
method.
previous
|
start
|
next