摘要:
Date curDate = new Date(); var preDate = new Date(curDate.getTime() - 24*60*60*1000); //前一天 var nextDate = new Date(curDate.getTime() + 24*60*60*1000) 阅读全文
摘要:
List<User> list1 = new ArrayList<>();List<User> list2 = new ArrayList<>();User user1 = new User("a1",1);list1.add(new User("a1",1));list1.add(new User 阅读全文
摘要:
List<User> lists = new ArrayList<>(); for (int i = 0; i < 40000; i++) { if (i%2 == 0){ lists.add(new User("aa1",1)); }else { lists.add(new User("aa2", 阅读全文
摘要:
long startTime = System.currentTimeMillis(); //获取开始时间doing //你的执行代码long endTime = System.currentTimeMillis(); //获取结束时间System.out.println("程序运行时间:" + ( 阅读全文