List<Map.Entry<Character, Integer>> list = new ArrayList<>(map.entrySet());
list.sort(Comparator.comparingInt(Map.Entry::getValue));
int min = list.get(0).getValue();
list.sort(Comparator.comparingInt(Map.Entry::getValue))
最新推荐文章于 2024-06-09 09:42:19 发布