timertask实例
?
2个关键类:timer(定时器,定时执行某个东西),timertask(真正的业务逻辑,写在run方法里面)
然后再记住一个方法:timer.scheduleAtFixedRate()即可。