This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes PERIODIC CHECK Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "PERIODIC CHECK" Watch "PERIODIC CHECK" New topic


Zaafir Barahim
Ranch Hand

Joined: Dec 12, 2006
Posts: 36
java code to do a periodic check and to run the desired code for a periodic interval time
Jeroen T Wenting
Ranch Hand

Joined: Apr 21, 2006
Posts: 1847
something to do something at some time for some duration.

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
I'm not exactly sure what you are asking, but have a look at the java.util.Timer and TimerTask classes.
Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

I too am not 100% sure what you are asking, but I suspect it can be answered by the classes Ulf mentions above. And in that case, this is not an advanced question, so I'll move this topic to a more appropriate form.

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
I agree. Here's the link:
It's not a secret anymore!