any simple program for single thread with timer in java.
that thread will run with particular time.
i am new to this thread开发者_开发问答.
thanks in advance
You'll want a ScheduledExecutorService, which can be obtained from one of the static factory methods on Executors.
Check out:
http://download.oracle.com/docs/cd/E17409_01/javase/6/docs/api/java/util/concurrent/Executors.html
http://download.oracle.com/docs/cd/E17409_01/javase/6/docs/api/java/util/concurrent/ScheduledExecutorService.html
精彩评论