Is there some way of initializing a Java HashMap like this?:
Map<String,String> test =
new HashMap<String, String>{"test":"test","test":"test"};
What would be the correct syntax?
I am looking for the shortest/fastest way to put some "final/static" values in a map that never change and are known in advance when creating the Map.