Hi, When the printPatientList method is called, all the details for the patients in the patientList array are displayed, but I am unable to add a valid if statement to say if no patients are in the array, println("No patients registered"). Code below:
I see your for loop does not have {}'s May be you are adding the if statement in the wrong place. Add curly braces to the for loop, and then add your if, so you'll see where everything goes.
The sword of destiny has two blades, one of them is you.