Question: Two questions please solve each one separately * JAVA * 1. Create SinglyLinkedList class. Apply all the following operations as discussed in the lecture: addFirst:

Two questions please solve each one separately
* JAVA *
1. Create SinglyLinkedList class. Apply all the following operations as discussed in the lecture:
addFirst: to add new node to the beginning of the linked list.
addLast: to add new node to the end of the linked list.
addNode: to add new node to a specific position in the linked list.
removeFirst: to remove the first node in the linked list.
findNode: to find a node with specific given value.
removeNode: to remove a specific node from the list.
2. (HW) Add a Person class that holds the name and address of a person with accessor and mutator methods. Then, test the class by creating a linked list of Person objects. Add and remove objects from the linked list using linked-list operations defined in Task 1.
Two questions please solve each one separately * JAVA * 1. Create

Tasks/Assignments(s) 1. Create SinglyLinkedList class. Apply all the following operations as discussed in the lecture: addFirst: to add new node to the beginning of the linked list. addLast: to add new node to the end of the linked list. addNode: to add new node to a specific position in the linked list. remove First: to remove the first node in the linked list. findNode: to find a node with specific given value. removeNode: to remove a specific node from the list. . . 2. (HW) Add a Person class that holds the name and address of a person with accessor and mutator methods. Then, test the class by creating a linked list of Person objects, Add and remove objects from the linked list using linked-list operations defined in Task 1

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!