标签:div roc 一个 line inter repr end cat 执行
//线程类public class TestThread extends Thread { public void run() { while(true){ try { sleep(6*1000); //这里可以写你自己要运行的逻辑代码 System.out.println("一分钟运行一次"); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } } }}//运行线程类MAINpublic class TestThreadMain { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub TestThread testThread = new TestThread(); testThread.start(); }}标签:div roc 一个 line inter repr end cat 执行
原文地址:http://www.cnblogs.com/kongxc/p/7965707.html