dcsimg
What is hash table?
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   bin_gong
Posted On:   Sunday, June 3, 2001 01:44 PM

Why do we use hash table to store objects? Is this the only way to store objects in JAVA? Why don't we use array?

Re: What is hash table?

Posted By:   Luigi_Viggiano  
Posted On:   Monday, June 4, 2001 05:07 AM

A basic class of the collection framework that provides an easy and fast way to access objects using a key.

example:

Object key = ...
Object object = ...
hasmap.put(key, object)
object = hashmap.get(key)


hasmap & hashtable work similarly.

Re: What is hash table?

Posted By:   John_Zukowski  
Posted On:   Sunday, June 3, 2001 10:51 PM

Consider looking in the Collections FAQ.
About | Sitemap | Contact