Question: Implement a method called reportEmployees () which should write the employee objects stored in the employeeList to a text file named employees-report.txt . You
Implement a method called reportEmployees () which should write the employee objects stored in theemployeeList to a text file named "employees-report.txt". You should use theprintf()method to format your data in the following structure: [7 marks] Assume you have a get method for each attribute of the class Employee.
- public void reportEmployees () ;
| ID | Name | Salary | Extra Hours |
| 100 | Pete Mann | $1000.0 | 10.0 |
| 101 | Chris Kenno | $1200 | 20.5 |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
