my dog learned polymorphism*
The moose likes Java in General and the fly likes null values in hash map Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "null values in hash map" Watch "null values in hash map" New topic
Author

null values in hash map

sumi sudha
Greenhorn

Joined: Jan 27, 2010
Posts: 14
i know hash map can accept null values and keys. can we give more than one null value or key in hashmap.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

More than one null value, yes. More than one null key, no; keys need to be unique.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
sumi sudha
Greenhorn

Joined: Jan 27, 2010
Posts: 14
Thanks Paul.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: null values in hash map
 
Similar Threads
How to create a hash map from an array?
displaying key of a hashmap,wrong order
HashMap Vs Hash table
hash map
Collections