Program that sorts text file by last names followed by additional given names till the first name. Navigate to /src directory and type the following command
javac main/java/NameSorter.java && java main/java/NameSorter "main/resources/names.txt"
This program will only work if the following file - names.txt is located in the same directory (/src/main/resources) as the program and will then output the sorted text file in the same directory as the program (/src/main/resources) called names-sorted.txt.
All test cases were executed on IntelliJ IDEA