+ 1
Hot to access key from value in hashmap
Method or code to access key
2 Réponses
+ 2
How will you? MANY keys might have same value.
Iteration through keys should do it.
+ 2
Saurav Kokane Since this is an operation that can produce more than one pair you need iterate using entrySet() and comparing with entry.getValue() to add each match to your result data structure. E.g. List or Set