Use java Implement a phone book using a linked list structure. In this phone book , you are going to store a name,lastname,email,and phone number Implement the folowing methods by using this class public class PhoneBookSinglyLinkedList { public PhoneBookNode head; public PhoneBookNode tail;
Use java
Implement a phone book using a linked list structure. In this phone book , you are going to store a name,lastname,email,and phone number
Implement the folowing methods by using this class
public class PhoneBookSinglyLinkedList {
public PhoneBookNode head;
public PhoneBookNode tail; public int size;
public boolean isEmpty() {//todo implement this}
public int size() {//todo implement this}
public void printPhoneBook() {//todo implement this}
public void add(Contact contact) {//todo implement this}
public PhoneBookNode findByFirstName(String firstName) {//todo implement this}
public List findAllByLastName(String lastName) {//todo implement this}
public void deleteByFirstName(String firstName) {//todo implement this}
public void deleteAllMatchingLastName(String lastName) {//todo implement this}
public List findAll() {//todo implement this}
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 3 images