Question: WRITE A JAVA PROGRAM A hospital stores information about its doctors in a text file using the following format: DoctorID;Doctor Name;DoctorSpecialization;Doctor Department;DoctorSalary Write a java

WRITE A JAVA PROGRAM
A hospital stores information about its doctors in a text file using the following format: DoctorID;Doctor Name;DoctorSpecialization;Doctor Department;DoctorSalary Write a java program with the following functionalities: A. Write a Doctor class to store all the relevant information of the Doctor as mentioned above. toString() method to display the doctor's information is also required. B. Assume that the doctors data is stored in file at path "D://Doctors.txt", write a program that reads doctors information one line at a time and store it in the objects of Doctor Class. C. Write a Hospital class containing the ArrayList of Doctor objects read from the file. Write a sort method in the Hospital class that sorts all the Doctors in ascending order w.l.t. their salary and print their details
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
