You can't have duplicate keys in a HashMap. You can, however, create a "multimap" -- a map with Lists as values.
Type: Posts; User: priya456
You can't have duplicate keys in a HashMap. You can, however, create a "multimap" -- a map with Lists as values.