Fenton High School Robotics Team - Programming Squad Stuff

Assignment: Sort a list of names input from names.txt (Right-click and Save As...) and create a new file called "results.txt" with the names changed to "Last, First" and the entire list of names sorted alphabetically by last name followed by first.

Here is a sample of the output expected:

Aderholt, Jenee
Alldredge, Tanisha
Alles, Malorie
Arens, Tina
Arviso, Harvey
Barbaro, Tanna
Batten, Ronda
Belisle, Angela
Belliveau, Laquanda
Birk, Tamesha
Bluford, Shenika
Boone, Myrle
Borgeson, Isreal
Bosch, Alaine
Bostic, Tai
Boylan, Tama
Bridgett, Marinda
Bromley, Marion P.
Bruen, Marvel
Brunswick, Danielle
Bryan, Leola
Buonocore, Jeni

Here are the imports I used in my application (to get you started on what to search for):

import java.io.FileWriter;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

I created a simple Java project with one class file. In the class wizard I told it to create the main() function.

When you have your program creating the output, send the source code to me at LeeLorenzSr <at> gmail.com