This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 19541
    
  16

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
******Let's do the counting for those who took the exam****
SCEA 5 Beta certification pack
calculating business hours
SEVERE: BAD packet signature 200,SEVERE: Caught exception (java.lang.NullPointerException)
How to set time 11:00 PM using Date or GregorianCalendar