摘要: 主要用到java.util的Collections类 其中,E必须实现Comparable<E>接口 阅读全文
posted @ 2017-11-03 10:35 Deolin 阅读(285) 评论(0) 推荐(0) 编辑
摘要: 主要用到Java 8的Stream类 如果List<E>中的E是个自定义的POJO,那么最好重写其toString()方法。 阅读全文
posted @ 2017-11-03 10:34 Deolin 阅读(3047) 评论(0) 推荐(0) 编辑
摘要: 发生原因不知道。 解决方法是在pom.xml中追加 阅读全文
posted @ 2017-11-03 10:30 Deolin 阅读(1034) 评论(0) 推荐(0) 编辑