Question: Create a java program that reads the names from the attached input file ( names . txt ) into an ArrayList. Sort the ArrayList in

Create a java program that reads the names from the attached input file (names.txt)into an ArrayList.
Sort the ArrayList in ascending order.
Create a second ArrayList, copying the first name of each letter group in alphabetical order. (Hint: If Angela and Audrey are on the list, only copy Angela into your second ArrayList, and so on for each letter).There should be 26names total on your second ArrayList.
Sort the second ArrayList in descending order.
Output the second list to sortednames.txt.

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 Programming Questions!