![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java8新特性
都昌小码农
这个作者很懒,什么都没留下…
展开
-
使用Java 8 Stream list排序
使用Java 8 Stream list排序先看实体类public class UserSimple { private int id; private String name; public UserSimple(int id, String name) { this.id = id; this.name = name; } public int getId() { return id; }原创 2020-06-18 13:54:32 · 894 阅读 · 0 评论 -
使用Java 8 Stream按Map的键进行排序
使用Java 8 Stream按Map的键进行排序public static void main(String[] args) { Map<Integer, String> map = new HashMap<Integer, String>(); map.put(15, "Mahesh"); map.put(10, "Suresh"); map.put(30, "Nilesh");原创 2020-06-18 11:28:12 · 253 阅读 · 0 评论