MCPcopy Create free account
hub / github.com/DuGuQiuBai/Java / main

Method main

day24/code/day24_Thread/src/cn/itcast_12/TimerTest.java:14–22  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

12 */
13public class TimerTest {
14 public static void main(String[] args) throws ParseException {
15 Timer t = new Timer();
16
17 String s = "2015-04-12 15:55:30";
18 SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
19 Date d = sdf.parse(s);
20
21 t.schedule(new DeleteFolder(new File("d:\\hello")), d);
22 }
23}
24
25class DeleteFolder extends TimerTask {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected