方法一:
PriorityQueue<Integer> queue = new PriorityQueue<>(10, Collections.reverseOrder());
方法二:
PriorityQueue<Integer> pq =new PriorityQueue<>((x, y) -> Integer.compare(y, x));
方法三:
PriorityQueue<Integer> maxPQ = new PriorityQueue<>((a,b) -> b - a);
方法四:
PriorityQueue<Integer> maxPQ = new PriorityQueue<>((a,b) -> b.compareTo(a));