This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Java in General and the fly likes Regarding HashMap Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "Regarding HashMap" Watch "Regarding HashMap" New topic
Author

Regarding HashMap

Saral Saxena
Ranch Hand

Joined: Apr 22, 2011
Posts: 203

Hi folks,

I was going through collections , could you please provide me with any real life scenarios that where we should use hash map...!!
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10745
    
    9

Which scenarios can you think of?


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Saral Saxena
Ranch Hand

Joined: Apr 22, 2011
Posts: 203

Maneesh Godbole wrote:Which scenarios can you think of?


well where very large collection I have which is unordered but this not that much clear..!!
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10745
    
    9

What is not clear?
Manoj Kumar Jain
Ranch Hand

Joined: Aug 22, 2008
Posts: 193

Saral Saxena wrote:
Maneesh Godbole wrote:Which scenarios can you think of?


well where very large collection I have which is unordered but this not that much clear..!!


This is not about a large or small collection. HashMap store the Key Value pair. So, you can store key/value and and use them.
What is not much clear I couln't get you..


Do not wait to strike till the iron is hot; but make it hot by striking....
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Regarding HashMap
 
It's not a secret anymore!