In a separate file, named HR.java, create a class named HR. It will read in all
ID: 3658655 • Letter: I
Question
In a separate file, named HR.java, create a class named HR. It will read in all personnel info from a file. The first line of the file contains a number indicating how many employees information are specified in the file. And the rest in the file contains information of each individual Employee. The HR class will receive the name of this file through command line argument, create an array to store Employees info, read in the information from the file, and save these Employees' info to another file in a better format via calling the toString method. In addition, it will count how many Employees are with the same title and print out these numbers on the screen.
Bonus part : Put the Employees' record in alphabet order before saving them into the output file.
Explanation / Answer
Sample Text File i have used for Testing is (First Name, Last Name, Age, Major)
Compared and Sorted Based on First Name
//HR.java
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.