In my blog post from december 14th, 2009 I posted a way to create HashMaps on-the-fly: http://depold.tumblr.com/post/2069109153/hashmaps-on-the-fly

Today I just released a helper collection (currently only containing one helper :D) for Java-Stuff. The contained helper is a MapBuilder, which allows you to create HashMaps in Java in an easy way. Including the class you can just do the following:

Map map = MapBuilder.build("key1", 123,"key2", 345,"key3", 456 );

So if you want to, checkout the following page: http://github.com/sdepold/com.depold.helpers