Question: Write a Java program that implements a sorted linked list. You have to implement four of the following operations: insert, that adds an element into
Write a Java program that implements a sorted linked list. You have to implement four of the following operations: insert, that adds an element into the list, print that prints the entire list (this would be in sorted order), remove deletes or removes the linked list, and exit to exit from the program.
The program prompts the user to enter one of the following four commands: insert, print, remove, and exit.
insert lets the user add a character to the list, print prints the list, remove gets rid of the current list and exit terminates the program.
For other requests the program displays an error message.
Some additional rules cannot exit while there is a none null linked list (have to remove first), can only enter lower case letters a to z.
please I want java source code
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
