MCPcopy Create free account
hub / github.com/HelloBush/Java_MHXYdemo / run

Method run

src/pkgTest/TestTimer.java:18–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16 TimerTask myTimerTask1 = new TimerTask(){
17
18 public void run() {
19 System.out.println(i++);
20// if(this.i==5)
21// //��ʱ���������Ҫͨ��Timer��cancel()��ȡ������̣߳���������һֱ����
22// myTimer.cancel();
23 }
24 };
25 myTimer.schedule(myTimerTask1, 2000,1000);
26

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected