问一个简单的问题? thanks songlean(乐乐) ,能不能写个例子 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 public class TimeListenerTest extends Thread { private int m_time; public static void main(String[] args) { TimeListenerTest t = new TimeListenerTest(); t.start(); } public void run() { try { while (!interrupted()) { m_time++; sleep(1000); if (m_time > 12 * 60 * 60) { System.exit(0); } } } catch(InterruptedException e) {} }} java 如何判断字符串中某个字符第五次出现的位置 帮我看看这两句有错误吗? 如何把目录下文件名写到一个list中去? SWT shell 窗口如何置顶? 求救:如何从控制台退出程序 最近研究javamail,关于送件人有些疑问,请高手帮忙 boolean型如何转成Object呢? Java 混淆器 如何除去链接底下的下划线(在线等待) 关于JTree的简单问题 高分求一界面--在线等 高手请进来帮忙,关于Implements问题
public class TimeListenerTest extends Thread {
private int m_time;
public static void main(String[] args) {
TimeListenerTest t = new TimeListenerTest();
t.start();
}
public void run() {
try {
while (!interrupted()) {
m_time++;
sleep(1000);
if (m_time > 12 * 60 * 60) {
System.exit(0);
}
}
} catch(InterruptedException e) {}
}
}