Write a method called descending that accepts an array of integers and rearranges the integers in the

Question:

Write a method called descending that accepts an array of integers and rearranges the integers in the array to be in descending order using a PriorityQueue as a helper. For example, if the array passed stores [42, 9, 22, 17, -3, 81], after the call the array should store [81, 42, 22, 17, 9, -3].

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: