Question: In Java, you will design a class called AddressBook that uses a Linked List to store nodes that are made up of Contacts. You must

 In Java, you will design a class called AddressBook that usesa Linked List to store nodes that are made up of Contacts. You must adapt the Node class that we wrote in class and

In Java, you will design a class called AddressBook that uses a Linked List to store nodes that are made up of Contacts. You must adapt the Node class that we wrote in class and adapt and add to the Linked List class that we developed together (You cannot use java.util.LinkedList for this assignment) 1. Start by designing the Contact class that holds a person's last name, first name, street name, and phone number: public class Contact private String lastName; private String firstName; private String streetName; private String phone //complete the rest of the class by adding appropriate constructors, get, set methods, toString, etc. 2. Re-design the Node class to hold Contact as its data Re-design the Linked List class that we developed in class so that the methods will work with Nodes with Contacts as its data. 3. Finally, you will create the AddressBook class. It has a LinkedList and methods to add a contact, display all contacts, search for a specific contact and display it, or search and delete a specific contact. 4. AddressBook: When a contact is added, it should be added in order alphabetically to the list by last name (and then by first name if there are multiple contacts with the same last name). To add alphabetically look at the compareTo String method which compares Strings lexicographically (returns an int >0, 0,

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!