- 博客(3)
- 收藏
- 关注
原创 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 111
原创 计算日期范围内的日期.包含周几
public static void main(String[] args) throws ParseException { // String 转 date Date starDate = DateUtils.parseDate("2019-03-16 00:00:00", DateConstants.YY_MM_DD); Date endDate = DateUtil...
2019-09-09 11:10:25 392
原创 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 582
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人