Re: Comparing elements from one hashset to another



On 1 Apr 2006 15:16:53 -0800, "farah" <farah_omarshah@xxxxxxxxxxx>
wrote, quoted or indirectly quoted someone who said :

ok so the code compares the words from two individual sets.....how can
i check that it has identified any words that were contained in BOTH
sets?

please see http://mindprod.com/jgloss/hashset.html#COMPARISON

Run the code. Trace it. It solves your problem three different ways.
All produce the expected result.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
.



Relevant Pages