2013年4月18日

java 定时调度类 Timer、TimerTask 介绍

摘要: 在java中,通过使用Timer类和TimderTask类来完成实现定时任务的执行先看一个很简单的例子:范例1:import java.util.*;import java.text.*;public class TimerDemo{ public static void main (String [] args) throws Exception { Timer timer = new Timer(); System.out.println("start at :" + new Date()); timer.schedule(ne... 阅读全文

posted @ 2013-04-18 17:12 lylyalong 阅读(555) 评论(0) 推荐(0) 编辑

导航