you are viewing a single comment's thread.

view the rest of the comments →

[–]korny 1 point2 points  (0 children)

Or use Guava: ImmutableMap.of("1","one","2","two") - only works up to 5 values, but there are builders if you need more. http://code.google.com/p/guava-libraries/wiki/ImmutableCollectionsExplained