posted 18 years ago
The following code example will make the distinction clear.
A HashMap is a combination of <key,values> where the hashcode of the key determines the efficiency.
A HashSet is a set of values which hashcodes determines the efficiency and where each key has to be unique
I hope this will clearify it.
Remko (My website)
SCJP 1.5, SCWCD 1.4, SCDJWS 1.4, SCBCD 1.5, ITIL(Manager), Prince2(Practitioner), Reading/ gaining experience for SCEA,