If all you want to sort is a set of Strings, you can also use the TreeSet class, which is truly a Collection in the capital "C" sense of the
word (note that the TreeMap class does not officially implement the Collection interface, but is a collection in the generic sense).
First, an example using TreeSet:
When run, the names will print in sorted order.
I'll be back in a moment with a TreeMap example!
J.