Hi,
I have a situation in which I need to be able to retrieve all keys associated with a particular value in a HashMap. However, I don't believe the class HashMap provides any methods to do this. I know I can obtain an EntrySet and then iterate through that, but I would like to know if there is a more "accepted" way to do this - perhaps a collection class or technique I'm unaware of.
Thanks, any help appreciated!!!
dora
I have a situation in which I need to be able to retrieve all keys associated with a particular value in a HashMap. However, I don't believe the class HashMap provides any methods to do this. I know I can obtain an EntrySet and then iterate through that, but I would like to know if there is a more "accepted" way to do this - perhaps a collection class or technique I'm unaware of.
Thanks, any help appreciated!!!
dora