Question: Use a priority queue to simulate prioritized jobs Priority Queue class Queue Class Node Class (Node will have a 4 digit job number and a
Use a priority queue to simulate prioritized jobs
Priority Queue class
- Queue Class
- Node Class (Node will have a 4 digit job number and a priority (A, B, etc.) with A highest priority
Driver Class
- Create a priority queue object
- Add 3 jobs of 'B' priority
- Add 4 jobs of 'D' priority
- Add 2 jobs of highest priority
- Print the queue
Step by Step Solution
3.35 Rating (164 Votes )
There are 3 Steps involved in it
A Java program simulating the PriorityQueue operations Note use Driverjava as class Name import javaio import javalang import javautil Node consists t... View full answer
Get step-by-step solutions from verified subject matter experts
