Question: Modify MyHashMap to allow duplicate keys for entries. You need to modify the implementation for the put(key, value) method. Also add a new method named
Modify MyHashMap to allow duplicate keys for entries. You need to modify the implementation for the put(key, value) method. Also add a new method named getAll(key) that returns a set of values that match the key in the map.
Step by Step Solution
3.38 Rating (157 Votes )
There are 3 Steps involved in it
Refer to Listing 271 and 272 for proper understanding of this question Modification for put The put ... View full answer
Get step-by-step solutions from verified subject matter experts
