Java Loop every minute.
Posted
by Robert
on Stack Overflow
See other posts from Stack Overflow
or by Robert
Published on 2010-04-24T02:31:25Z
Indexed on
2010/04/24
2:33 UTC
Read the original article
Hit count: 392
I want to write a loop in Java that firs starts up and goes like this:
while (!x){
//wait one minute or two
//execute code
}
I want to do this so that it does not use up system resources. What is actually going on in the code is that it goes to a website and checks to see if something is done, if it is not done, it should wait another minute until it checks again, and when its done it just moves on. Is their anyway to do this in java? I googled it but didnt find anything. Thanks
© Stack Overflow or respective owner