In HashMap if you have element value can you access to the key? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

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

15th Mar 2016, 4:33 PM
Beka Sazuashvili
1 Respuesta
+ 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