Hi, For what I understand in K & B
If you are adding OBJECTS in TreeSet you need the object to implement Comparable,
or you'll end up with a runtime exception.
If you are adding Wrapper Objects like
String, Integer etc... They are sorted by natural order because wrappers implements comparable.
So if you are adding a Dog Object to your TreeSet the Dog should implement Comparable.
Hope this helps.