You can't have duplicate keys in a HashMap. You can, however, create a "multimap" -- a map with Lists as values.