System.out.println("Displaying ward details");
System.out.println("Ward name: " + wardName);
System.out.println("Number of beds: " + numberBeds);
int iloop;
for(iloop = 0; iloop < numberBedsOccupied; iloop++) {
System.out.println("Patient's name = " + patient[iloop].getName());
System.out.println("Patient's ID = " + patient[iloop].getID());
System.out.println("Patients last pulse = " + patient[iloop].getPulse());
}
System.out.println("array size is "+patient.length);