File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Spring in Action this week in the Spring 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