Timer类负责设定TimerTask的起始和间隔执行时间。具体的执行任务,由用户创建一个TimerTask的继承类,并实现其run()方法 timer.schedule() 转载于:https://www.cnblogs.com/zhaoleigege/p/7596623.html