How to use an instance initializer with a generic HashMap?
Can you use an instance initializer with a generic HashMap? I found this code online, but am having trouble converting it to a generic HashMap instead of a basic HashMap: someMethodThatTakesAHashMap(new HashMap(){{put("a","value-a"); put("c","value-c");}}); ...