File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes HashMap and HashTable in java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "HashMap and HashTable in java" Watch "HashMap and HashTable in java" New topic

HashMap and HashTable in java

Raveendran Hs

Joined: Feb 05, 2010
Posts: 23

How does key and value stored in HashMap/HashTable.
Also how does key searching will happens when we call the conatins(key) method on a Hashmap/HashTable instance.
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
#24 in the JavaBeginnersFaq points to a free PDF version of Niklaus Wirth's seminal book Algorithms and Data Structures, which has a lengthy chapter on hashing techniques.
I agree. Here's the link:
subject: HashMap and HashTable in java
It's not a secret anymore!