0
What is the difference between HashMap and HashSet?
2 Réponses
0
Find more info here:
http://stackoverflow.com/questions/2773824/difference-between-hashset-and-hashmap
This is the clearest answer I found there:
"
HashSet is a set, e.g. {1,2,3,4,5}
HashMap is a key -> value (key to value) map, e.g. {a -> 1, b -> 2, c -> 2, d -> 1}"
0
hashmap is used to create and search in a map, however hashset is used while storing the keys and values in a map, thats all
if you found the answer satisfized please vote up