PriorityQueue<Map.Entry<String,Integer>> pq=new PriorityQueue<>(
(a,b) -> a.getValue()==b.getValue() ? b.getKey().compareTo(a.getKey()) : a.getValue()-b.getValue());
Map.Entry<K,V>应该就是指map中的一个元素的类型
PriorityQueue<Map.Entry<String,Integer>> pq=new PriorityQueue<>(
(a,b) -> a.getValue()==b.getValue() ? b.getKey().compareTo(a.getKey()) : a.getValue()-b.getValue());
Map.Entry<K,V>应该就是指map中的一个元素的类型