queues are often used to simulate the flow of peoplecarsairplanestransactionsand so on write program that models checkout lines at supermarketusing the queue class from the queue java program (listing several lines of customers should be displayedyou can use the display(method of programming project you can add new customer by pressing key you'll need to determine how the customer will decide which line to join the checkers will take random amounts of time to process each customer (presumably depending on how many groceries the customer hasonce checked outthe customer is removed from the line for simplicityyou can simulate the passing of time by pressing key perhaps every keypress indicates the passage of one minute (javaof coursehas more sophisticated ways to handle time