Java: Remove Duplicates In Vector
Posted by admin on
February 13, 2009
Either you do this
Vector newVect = new Vector(new LinkedHashSet(originalVect));
or this, if you do not need a new Vector object created
Collection noDup = new LinkedHashSet(emails); emails.clear(); emails.addAll(noDup);









