Question: data structure Write a Java program that implements a queue in a hospital. The program should ask the user to enter the number of patients
data structure
Write a Java program that implements a queue in a hospital. The program should ask the user to enter the number of patients then enter the patient number starting from 110 till the end of the queue then print number of patients waiting in the queue.
without using stack and queue library
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
