How would you initialise a static Map in Java?
Map
Method one: static initialiser Method two: instance initialiser (anonymous subclass) or some other m
I like anonymous class, because it is easy to deal with it:
public static final Map, ?> numbers = Collections.unmodifiableMap(new HashMap() { { put(1, "some value"); //rest of code here } });