Map map = new HashMap(); //you're forced to create a temporary variable map.put(1, "one"); map.put(2, "two"); //because you can't chain these void method calls(mutators) ... return map;