aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes about Hashset Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "about Hashset" Watch "about Hashset" New topic
Author

about Hashset

Nilesh Shekokar
Greenhorn

Joined: May 02, 2006
Posts: 17
Hashtmap allows one null key and multiple null values
Hashtable cant allow anything that is null

and

It is given in the Enthuware simulator that
Hashset can allow null values!!!
is it correct??


SCJP 5<br />SCWCD 1.4
Arno Reper
Ranch Hand

Joined: Mar 14, 2006
Posts: 286
Hi,

From the source...
Here is the add method

the map is a

I hope this will help you understanding how HashSet works
arno
PS: reading the source is very usefull to learn how its made
=> www.docjar.com


The man who makes no mistakes does not usually make anything<br /> <br />>>> SCJP 5.0 >> SCJD B&S <<< In progress
Arno Reper
Ranch Hand

Joined: Mar 14, 2006
Posts: 286
Maybe you also wanna see the put method from HashMap


arno
Arno Reper
Ranch Hand

Joined: Mar 14, 2006
Posts: 286
did it help you a bit?
arno
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: about Hashset