let say I have this code
Map list = new HashMap(); list.put(\"number1\", \"one\"); list.put(\"number2\", \"two\")
Nothing like that exists in Java. You might be able to do something with IDE templates or autocompletion, and look forward to (limited) generics type inference in Java 7.