Question: iven the following HashTable framework, complete the get method of the class class HashTable{ //data members private Object[] table; //hash table private int size; //number
iven the following HashTable framework, complete the "get" method of the class class HashTable{ //data members private Object[] table; //hash table private int size; //number of element in the hash /** hash function that take a key and returns a hash value to be used as an index in the hash table */ private int hashKey(K key){ int hashValue = 0; //...intentionally skipped, assumed it is fully implemented return hashValue; } /** retrieve and return the element with matching given key*/ public E get(K key){ E element = null; //... to be implemented return element; } }//end of hashTable class
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
