I\'d like to create a map that contains entries consisting of (int, Point2D)
map
(int, Point2D)
How can I do this in Java?
I tried the following unsuc
There is even a better way to create a Map along with initialization:
Map rightHereMap = new HashMap() { { put("key1", "value1"); put("key2", "value2"); } };
For more options take a look here How can I initialise a static Map?