Priority Warteschlange Reverse Order Java
PriorityQueue<Integer> pQueue = new PriorityQueue<Integer>(Collections.reverseOrder());
Excited Eagle
PriorityQueue<Integer> pQueue = new PriorityQueue<Integer>(Collections.reverseOrder());
PriorityQueue<Integer> pq =new PriorityQueue<>((x, y) -> Integer.compare(y, x));
pq.add(10);
pq.add(5);
System.out.println(pq.peek());