View Single Post
  #1 (permalink)  
Old 07-24-2007, 07:09 AM
toby toby is offline
Member
 
Join Date: Jul 2007
Posts: 40
toby is on a distinguished road
Help with HashMap in java
I have a hashmap setup in the following way:
Code:
Key Value 0 XXX 1 XYX 2 XYY 3 XXX 4 YXX 5 YXX
I currently can check if a given value is in the map no problem. But once I determine that a value is in the map, how do I return the key or keys at which a given value was found? This is crucial for me to be able to do. I know values are not unique but there has to be a way to return which key or keys have that value.
Thanks
Reply With Quote
Sponsored Links