Some skeletal program code for this application is shown in Figure 1 , which follows.
At the minimum, your program is to perform these tasks:
• Declare and populate an array or array list that will hold the names of the
customers in line to be serviced.
• Display the elements in the queue via a message dialog box.
• Add a new customer to the rear of the queue.
• Remove an existing customer from the front of the queue.
• Check if all the customers have been serviced.
Then compile and run your program, observe the output and then modify the program.