Answered step by step
Verified Expert Solution
Question
1 Approved Answer
code just in java! Q 1 - Coding Question Write a class for a Contact that contains: The person s name The person s phone
code just in java!
Q Coding Question
Write a class for a Contact that contains:
The persons name
The persons phone number
Write a Contact Manager That uses a linked list implementation Use the Java linked list no need to make your own of a hash table to store a contact list in it It will contain the following:
A private data field for the maximum number of contacts
An ADT List that stores contacts List
A constructor that initializes the list with each item in the list being a new
LinkedList
A simple hash method it can just the length of the string by the capacity that generates the hash key for a string
A method to add a contact to the hash table
A method to search the hash table
A method to delete a contact from the hash table
Write a test class where you create some contacts and put them into the hash table, try searching and deleting as well.
Q Discussion Question
What is a major problem with our hash table weve written above? What kinds of things can we
do to solve this issue?
What are some ways that hash tables are built to deal with collisions?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started