Use a LinkedHashSet instead. It can be iterated over in insertion order, but is of course heavier as it needs to keep track of the insertion order (which it does by backing the Set with a List or array).
jwenting
duckman
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337