Question: Create the following linkedList (do not use java.util.LinkedList) Create the node class that accept: [int ID, double Phone Number, double Time]. Create a linkedList class

Create the following linkedList (do not use java.util.LinkedList)

Create the node class that accept: [int ID, double Phone Number, double Time].

Create a linkedList class that include

InsertFirst, to insert always at the beginning of the list

DeleteFirst, to delete always at the end of the list

DisplayList, to print the linked list.

Create the main, thus the user can create various nodes (-1) to stop adding.

At the end,

The program should print the list and the number of nodes created.

The program should print the sum of the data in the nodes

The program will delete the first 2 nodes, and then again print the list and the number of nodes created.

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!