1. Describe how to redesign the AbstractHashMap framework to include support for a method,… 1 answer below »

1. Describe how to redesign the AbstractHashMap framework to include support for a method, containsKey, as described in Exercise R-10.3. Modify the ChainHashMap class in accordance with your design for the previous exercise.

2. Modify the ProbeHashMap class in accordance with Exercise C-10.36.

Exercise C-10.36

Redesign the AbstractHashMap framework to include support for a method, containsKey, as described in Exercise R-10.3.

Exercise R-10.3

The use of null values in a map is problematic, as there is then no way to differentiate whether a null value returned by the call get(k) represents the legitimate value of an entry (k,null), or designates that key k was not found. The java.util.Map interface includes a boolean method, containsKey(k), that resolves any such ambiguity. Implement such a method for the UnsortedTableMap class.

 
Do you need a similar assignment done for you from scratch? We have qualified writers to help you. We assure you an A+ quality paper that is free from plagiarism. Order now for an Amazing Discount!
Use Discount Code "Newclient" for a 15% Discount!

NB: We do not resell papers. Upon ordering, we do an original paper exclusively for you.