Using compareTo is often tricky, and I never remember which way is which without looking it up, but the good news is that the interface is pretty standard for comparing many types of objects, so once you get it you are all set. But what that means will not make sense until later, so for now, don't do it. 7.12 Glossary object A collection of related data that comes with a set of methods that operate on it. A variable or value used to select one of the members of an ordered set, like a character from a string. A run time error.
Exceptions cause the execution of a program to terminate.