Question: Java Question: You are consulting for a hospital and they want you to build an application to take in Patient information. So you start building

Java Question:

You are consulting for a hospital and they want you to build an application to take in Patient information.

So you start building out the Patient Object with the following information :

Patient ID int

Patient First Name String

Patient Last Name String

Patient illness String

Notes String

You want to make sure there are no duplicate patients. So you use the Set interface and make sure you override the hashcode() and equals() methods of the Patient class.

The patients needs to be in alphabetical order by last name. So you want to make sure you create a PatientLast name Comparator and use the TreeSet.

For the purpose of this assignment you need to create 10 patient records. Use the BufferedReader with System.in to have the user input the records.

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 Databases Questions!