title: adding multiple entries to a HashMap at once in one statement
body: <p>I need to initialize a constant HashMap and would like to do it in one line statement. Avoiding sth like this:</p>
  
  <pre><code>  hashMap.put("One", new Integer(1)); // adding value into HashMap
    hashMap.put("Two", new Integer(2));      
    hashMap.put("Three", new Integer(3));
  </code></pre>
  
  <p>similar to this in objective C:</p>
  
  <pre><code>[NSDictionary dictionaryWithObjectsAndKeys:
  @"w",[NSNumber numberWithInt:1],
  @"K",[NSNumber numberWithInt:2],
  @"e",[NSNumber numberWithInt:4],
  @"z",[NSNumber numberWithInt:5],
  @"l",[NSNumber numberWithInt:6],
  nil] 
  </code></pre>
  
  <p>I have not found any example that shows how to do this having looked at so many.</p>