Actually, I think that the Tree collections order things according the comparator that is supplied explicitly or implicitly. Ties cause over-writing.
The LinkedHashMap will preserve order of addition. On Wed, Dec 29, 2010 at 9:57 PM, Jeff Eastman <[email protected]>wrote: > Good point. I thought the logic was awkward, testing startsWith twice, so I > went with the more direct solution. > > On 12/29/10 6:29 PM, Lance Norskog wrote: > >> The Tree Map and Set classes preserve the order of addition to the >> Map/Set. > >
