Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public void run() {
- while (!queue.isEmpty() || !hospital.areAllAdmited()) {
- if (!queue.isEmpty()) {
- Patient p = queue.remove(0);
- doc.appointment(p);
- }
- }
- System.out.println(doc.getSpecialization() + " KOŃCZY PRACĘ");
- }
Advertisement
Add Comment
Please, Sign In to add comment