Answered step by step
Verified Expert Solution
Question
1 Approved Answer
in java language Question 1 ArrayList of Strings with Sorting You will be writing a program that accepts commands to carry out some operations to
in java language
Question 1 ArrayList of Strings with Sorting You will be writing a program that accepts commands to carry out some operations to manage a list of names. Running the program will show the user a menu. In the following screen shot, the texts displayed by the program are in black. The commands entered by you are in blue. Your program should be able to perform the same behaviour as follows. The following screenshots go from left to right. After the commands of "A Oliver", "A limmy", and "A Tom", three names are added to the Arraylist. After the O command, the Arraylist is sorted. Future U command will produce ordered ArrayList unless we add a new name making the current ArrayList out of order again. "D 1" deletes the 1" item in the Arraylist. U Unordered List Jimny 01iver Enter an operation Tom A oliver Enter an operation Enter an operation A Cathy A Jimmy Enter an operation Enter an operation U A Tom Unordered List Enter an operation Jimmy U 0liver Unordered List Tom 0liver Cathy JimmyTomEnterD1 Enter an operation Deleting Jimmy 0 Enter an operation U Ordered List Unordered List Jimmy Oliver Oliver Tom Tom Cathy Enter an operation Enter an operation Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started