In HashMap if you have element value can you access to the key? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

In HashMap if you have element value can you access to the key?

15th Mar 2016, 4:33 PM
Beka Sazuashvili
1 Answer
+ 1
Not directly. And the reason is, there's no guarantee that unlike the keys, the values will be unique.
6th Apr 2016, 7:50 PM
Sounak Ray
Sounak Ray - avatar