wood burning stoves*
The moose likes Java in General and the fly likes Timer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Timer" Watch "Timer" New topic
Author

Timer

Justin Russo
Ranch Hand

Joined: Oct 21, 2007
Posts: 77
Hi ,

How do we create a timer which executes the same task a t specific time of the day?
for e.g.

i want to execute print "hello world" at 3:00 PM and then at 4:00 PM

thnx


You Want it.. Get it.......the Right Way...<br /> <br />SCJP 5.0 SCWCD 5.0
Oleg Tikhonov
Ranch Hand

Joined: Aug 02, 2008
Posts: 55
Hello,
please look at here Timer example
and javadoc.

Hope it helps.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19656
    
  18

You may also want to check out Quartz.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Timer
 
Similar Threads
How to set time 11:00 PM using Date or GregorianCalendar
SEVERE: BAD packet signature 200,SEVERE: Caught exception (java.lang.NullPointerException)
******Let's do the counting for those who took the exam****
calculating business hours
SCEA 5 Beta certification pack