Why not create a HashSet hashSet directly from HashSet? WHy use Set object to access add()
The reason to use Set is so that you can later change your implementation to use some other class that implements Set (LinkedHashSet, for example) with a minimum of fuss if you find it necessary. Flexibility is the
word I'm looking for.
But you certainly
can use HashSet if you'd like.
[ November 07, 2003: Message edited by: Derek Baker ]