wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes Hash Map Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Hash Map" Watch "Hash Map" New topic
Author

Hash Map

mythily prakash
Ranch Hand

Joined: Jan 27, 2006
Posts: 31
could any body tell me how to create a Hash Map in java.I just want to use it inorder to reduce the Ifs in my program.


Best Regards,<br />Mythily.S<br />9886530336
Kj Reddy
Ranch Hand

Joined: Sep 20, 2003
Posts: 1704
Originally posted by mythily prakash:
could any body tell me how to create a Hash Map in java.I just want to use it inorder to reduce the Ifs in my program.


I guess this question should go Java in General (beginner)

To answer your query what is your requirement?

You can crate HashMap using its default or other constructors. For ex:
HashMap hashMap = new HashMap() and then put values using put() method.
 
Consider Paul's rocket mass heater.
 
subject: Hash Map
 
Similar Threads
Sorting Maps
Storing ActionForm&action class-WHERE?
Doubt in Hash Map and Hash Table
About Hash Map
Hashmap