Revise the interface for the ADT priority queue, as given in Segment 10.19 of the previous chapter, by replacing the method add with the following method:
public void add(T newEntry, Comparablesuper
priorityValue)
The client provides an entry and its priority value to this method. The priority queue does not use newEntry’s compareTo method to assess its priority. Implement this version of the priority queue.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.