Java
G__D__Y
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
java list 排序
List<Person> personList = TestClass.getPersonList(20); personList.sort(new Comparator<Person>() { @Override public int compare(Person o1, Person o2) { int num0 = o1.score - o2.score; return num0 == 0 ? o1.age - o2.age :.原创 2020-06-24 11:34:05 · 228 阅读 · 0 评论 -
LocalDate时间类
LocalDate date = LocalDate.now(); System.out.println(date); LocalDate localDate = date.plusDays(5); System.out.println(localDate); int period = Period.between(date, localDate).getDays(); System.out.p...原创 2019-05-23 16:53:45 · 662 阅读 · 0 评论
分享