摘要: Java Map实现按value排序 如果想按照key来排序,用TreeMap就可以;如果想实现按value排序,可以采用下面这种方式 public static void main(String[] args) { Map<String,Integer> map = new HashMap<>() 阅读全文
posted @ 2023-01-02 21:08 Appletree24 阅读(477) 评论(1) 推荐(0) 编辑