I hold the following map
Map<Integer, List<String>>
when I add a new string to a certain int I just add it to the list of that int value in my map.
Now, I also need to remove it from the last list it was located in.
I will elaborate for a second :
It is not the same instance of the string. I get an int and a String, I need to add it and remove it from the former List in the map that held the same string value.
This means that I need to hold another map of String to Integer ?
Do I need to maintain two collections?
thanks.