Question: Create the Department class in a separate file. Modify the main method so that it obtains an input file from the command - line arguments.

Create the Department class in a separate file. Modify the main method so that it obtains an input file from the command-line arguments. If there is no command-line argument then start with an empty Department. Use the input file to populate the Department via the readDepartment method. Create extra Student and Employee objects and add them to the department. Prompt the user for an output file name and call the writeDepartment method to save the updated department contents.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!