Question: Description: Your objective is to implement your own Dictionary class that uses a hash table as the backing data structure (as explained in the lecture



Description: Your objective is to implement your own Dictionary class that uses a hash table as the backing data structure (as explained in the lecture notes). This table will contain an array of KeyValuePair objects (which each contain a key and a value). Your initial table size should be 7 buckets. Specifically you are to do the following: Create a public generic class called Dictionary. This class will contain two generic types, one for the key and one for the value of each KeyValuePair object. Refer to the given KeyValuePair class to see how to do two generic types for a single class. This Dictionary class should have the following: Fields o An array of KeyValuePair objects that we will use as our hash table o A special "deleted" KeyValuePair object to use for marking an entry as being deleted. This can be defined as: private final KeyValuePair
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
