Question: JAVA program: Write a program that will read in Student names and years. Each line of the input file will have the students first and
JAVA program:

Write a program that will read in Student names and years. Each line of the input file will have the students first and last name followed by a -- and then their current year in college( Sr., Jr., So., or Fr.). Your program will input from a file and then output all of the students from one particular class to an output file. Each line of the output file will be in the format: Last, First. You will prompt the user for the input file name and the class year. I want to be able to do more than 1 input file. There will be an output file for each input file. The output file should be labled:_"output + number + class year.txt(i.e. output1Fr.txt, output2Sr.txt, ...)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
