Initially I put two entries with the same value into a hashmap. The value of the two entries is itself a map. These entries have different keys.
Now I want to put new values into the map (the value) of the first entry. The problem is that the map of the second entry (its value) is also changed as long as I change the first one. The two different keys somehow reference the same value (map).
What should I do in order to edit the values of the initially identical values separately from each other?