Article View: cn.bbs.comp.lang.java
Article #20868Re: [JAVA��]��һ�������쳣������
From: ���˹�
Date: Sun, 14 Dec 2003 09:49
Date: Sun, 14 Dec 2003 09:49
23 lines
1634 bytes
1634 bytes
import java.util.*;
public class TestTimer{
public static void main(String[] args){
Timer t = new Timer();
MyTask m = new MyTask();
System.out.println(new Date().getTime());
t.schedule(m,1000);
}
}
class MyTask extends TimerTask{
public void run(){
System.out.println(new Date().getTime());
}
}
�� �� skyhit (Java & .Net) �Ĵ������ᵽ: ��
: ͬ�� �����벻���漰�����ܣ������һ�£���дһ����IJ�����̡� �� eldon (don) �Ĵ������ᵽ: ��
: : ���롢����
: : ����˵��һ�У���
--
[m[1;33m�� ��Դ:��Ʈ��ˮ�Ƽ� Freecity.dhs.org��[FROM: jungleboy][m
Technical Details
Message-ID:
<49ddGZ$A0G@Freecity.dhs.org>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newshosting.com!news-xfer2.atl.newshosting.com!167.206.3.103.MISMATCH!news3.optonline.net!ctu-peer!news.nctu.edu.tw!netnews.csie.nctu.edu.tw!maily.cic.tsinghua.edu.cn!news.ccie.net.cn!FreecityShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,GB X-Google-Thread: f6cb0,175211ee190a0c22 X-Google-Attributes: gidf6cb0,public X-Google-ArrivalTime: 2003-12-14 01:47:34 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newshosting.com!news-xfer2.atl.newshosting.com!167.206.3.103.MISMATCH!news3.optonline.net!ctu-peer!news.nctu.edu.tw!netnews.csie.nctu.edu.tw!maily.cic.tsinghua.edu.cn!news.ccie.net.cn!Freecity From: jungleboy.bbs@Freecity.dhs.org (���˹�) Newsgroups: cn.bbs.comp.lang.java Subject: Re: [JAVA��]��һ�������쳣������ Date: 14 Dec 2003 09:49:37 GMT Organization: Ʈ��ˮ�Ƽ� Message-ID: <49ddGZ$A0G@Freecity.dhs.org> Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 8bit X-Filename: Java/M.1071395363.A Lines: 23