Question: Create an application that can use Singly Linked List with java The Candidate data will keep the save information For Singly Linked List and do
Create an application that can use Singly Linked List with java
The Candidate data will keep the save information
For Singly Linked List and do the following tasks, until users want to exit
-INSERT: Allow users to insert Candidate or Candidate with experience until users want to stop. For each Candidate or Candidate with experience: display message to ask users to enter all the information that needs to create an object then insert it to the Singly Linked List. When users finish inserting all nodes, display all the Singly Linked list to verify all are inserted
-FETCH: allow users to enter the id to look for the Candidate or Candidate with experience. If the Linked List is empty, display the message: There is no node in the Singly Linked List If the Candidate cannot be found, display the message: ID 12345 cannot be found where 12345 is the target key to look for the Candidate If the it is found, display the information of the Candidate or Candidate experience
-UPDATE: allow users to enter the id of the Candidate that they want to update Ask for new information, it could be address or salary; then set the new change to the node Update the new node to the Singly Linked List then fetch it to verify the change If the Linked List is empty, display the message: There is no node in the Singly Linked List If the Candidate cannot be found, display the message: ID 12345 cannot be found where 12345 is the target key to look for the Candidate
-DELETE: allow users to enter the id of the Candidate that they want to delete Delete the Candidate with the id. Fetch with the same id to verify the Candidate is deleted If the Linked List is empty, display the message: There is no node in the Singly Linked List If the Candidate cannot be found, display the message: ID 12345 cannot be found where 12345 is the target key to look for the Candidate
-SHOW ALL: show all nodes in the linked list
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
