Hi Helen,
The answer is 1234.
TreeSet implements SortedSet
and therefore orders it's elements
in ascending order on insertion
in a so-called red-black tree
(if I'm not mistaken
). Anyway
ordering takes place.
Additionally, since it's a Set, each
entry is unique.
Cheers,
Gian Franco
[ July 13, 2004: Message edited by: Gian Franco Casula ]