线程池-案例1
摘要:BlockingQueue<Runnable> workQueue = new ArrayBlockingQueue<>(10); ThreadPoolExecutor threadPool = new ThreadPoolExecutor(2, 3, 3, TimeUnit.SECONDS, wo
阅读全文
posted @
2022-07-12 15:55
爷的眼睛闪亮
阅读(60)
推荐(0) 编辑
Java 获取当前时间的前几天或后几天
摘要:SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); Date date=new Date(); Calendar calendar = Calendar.getInstance(); calendar.setTime(d
阅读全文
posted @
2022-07-11 15:57
爷的眼睛闪亮
阅读(1244)
推荐(0) 编辑