📅  最后修改于: 2022-03-11 14:52:39.958000             🧑  作者: Mango
PriorityQueue pq =new PriorityQueue<>((x, y) -> Integer.compare(y, x));
pq.add(10);
pq.add(5);
System.out.println(pq.peek());