Java多线程编程(五)定时器Timer

  一、定时器Timer的使用

  1.方法schedule(TimerTask task,Date time)的测试

  2.方法schedule(TimerTask task,Date firstTime,long period)的测试

  3.方法schedule(TimerTask task,long delay)的测试

  4.方法schedule(TimerTask task,long delay,long period)的测试

  5.方法scheduleAtFixedRate(TimerTask task,Date firstTime,long period)的测试

猜你喜欢

转载自www.cnblogs.com/BigJunOba/p/8991341.html