I want to have a map with duplicate keys.
I know there are many map implementations (Eclipse shows me about 50), so I bet there must be one that allows this. I know
This problem can be solved with a list of map entry List>. We don't need to use neither external libraries nor new implementation of Map. A map entry can be created like this: Map.Entry entry = new AbstractMap.SimpleEntry("key", 1);
List>
Map.Entry entry = new AbstractMap.SimpleEntry("key", 1);