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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started