Question: Need help creating this practice program in Java by utilizing a LinkedList implementation of any choice, and I need to implement a priority queue as
Need help creating this practice program in Java by utilizing a LinkedList implementation of any choice, and I need to implement a priority queue as follows. For a class Customer, which has a String field for the name and a positive (including 0) Integer field for the priority, generate a custom Queue that automatically "bumps" customers with a higher priority (default is 0, higher integers mean higher priority) to the top of the line in the queue. At any given point, the queue should be sorted by priorities in order, i.e., the highest priorities should always be at the head of the queue.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
