HashMap<Character, Integer> map = new HashMap<>();
('a',325);
('b',32);
- 仅对value进行排序(不要key)
ArrayList<Integer> list = new ArrayList<>(());
(list);
- 对value进行排序(要key)
ArrayList<<Character, Integer>> list = new ArrayList(());
(list, (a, b)-> {
return () - () ;
});