Hey all, I wasn't finding the exact same situation in my searches some forgive me if been asked before.
I got a situation where I have some
string values code iterates through vales and builds a hashmap of keys and lists pertaining to the keys.
Well I recent discovered when the values in a list are duplicates of a prior list my key value changes to the last one it found.
For example hashmap has keys "1","2" each key has a list of strings.
Well when key "3" comes in and it has some of the same values in the list as key "1" , my hashmap now changes to "3" and "2" and key one with all "1" values disappear with key "3"'s values. IS there a map type to use or some way to prevent this?
thanks