Question1- Add to the class ChainingHashTable a method called search( E data) that is receives a generic type of data, and returns the index where this data is stored in the hash table. If the data does not exist then return -1. Don't forget to test the method in the main of Test class, if the returned value is -1 then display the data does not exist in the hash table, otherwise, display the index value.
Question1- Add to the class ChainingHashTable a method called search( E data) that is receives a generic type of data, and returns the index where this data is stored in the hash table. If the data does not exist then return -1. Don't forget to test the method in the main of Test class, if the returned value is -1 then display the data does not exist in the hash table, otherwise, display the index value.
Chapter8: Arrays
Section: Chapter Questions
Problem 7PE
Related questions
Question
100%
![Question1- Add to the class ChainingHashTable a method called search( E
data) that is receives a generic type of data, and returns the index where this
data is stored in the hash table. If the data does not exist then return -1.
Don't forget to test the method in the main of Test class, if the returned value
is -1 then display the data does not exist in the hash table, otherwise, display
the index value.](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fe350d7fd-b6ed-41e1-841c-8191b8cad183%2F4bf72a30-336f-47e5-b542-fb3eaec8f6a6%2Fuzms4po_processed.png&w=3840&q=75)
Transcribed Image Text:Question1- Add to the class ChainingHashTable a method called search( E
data) that is receives a generic type of data, and returns the index where this
data is stored in the hash table. If the data does not exist then return -1.
Don't forget to test the method in the main of Test class, if the returned value
is -1 then display the data does not exist in the hash table, otherwise, display
the index value.
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT