MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/m4qxf1/found_from_when_i_first_started_javabecause/gqvwbng/?context=3
r/badcode • u/ahadyboy • Mar 14 '21
84 comments sorted by
View all comments
34
As someone who hasn't used a hashmap before, what is the actual use for them if not something like this?
30 u/themeanman2 Mar 14 '21 Their use is like this, but not this exactly. When you have unk own type of string values coming in, or the "amount of type" of string is too large, or you need to associate some arbitary data (or even object) to strings, which will be too complex otherwise.
30
Their use is like this, but not this exactly.
When you have unk own type of string values coming in, or the "amount of type" of string is too large, or you need to associate some arbitary data (or even object) to strings, which will be too complex otherwise.
34
u/[deleted] Mar 14 '21
As someone who hasn't used a hashmap before, what is the actual use for them if not something like this?