We are almost done with the Collection classes. You might have seen in the chapter that introduced collections, talked about a Queue and a class named PriorityQueue. In this chapter we are going to take a look at this class.
So, lets get started!!!
PriorityQueue
The last collection class you’ll need to understand for the exam is the PriorityQueue. Unlike basic queue structures that are