Can we use iterator to retrieve elements from a hash table? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

Can we use iterator to retrieve elements from a hash table?

4th Sep 2016, 6:02 PM
yasmin
1 Respuesta
0
yes u can. u can do it in d same way as u do for list. just go for itr.hasNext() in while and get the key.
4th Sep 2016, 8:21 PM
Sonu Mishra
Sonu Mishra - avatar