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
Java 9
public static void main(String[] args) { Map map = Map.ofEntries(entry(1,"A"), entry(2,"B"), entry(3,"C")); }