I want to loop something according to time.
I.e. suppose if time right now is 12:00 AM
I want the loop to run every 1 minute till the time is 12:30 AM for
instance.
Pseudo-code below
While(Time != 12:30 AM) /// <-----
But I want this loop for run every minute
{ System.out.println("Time right now is " + time);
}
How would I code something like that in Java
?
>I want to loop something according to time.
Are you planning to apply that loop to make a post to
this group every two minutes? Please don't repost topics.
As to the need to 'loop on time', you might look to a
javax.swing.Timer.

Signature
Andrew Thompson
http://www.physci.org/
Lew - 03 Dec 2007 10:11 GMT
>> I want to loop something according to time.
>
> As to the need to 'loop on time', you might look to a
> javax.swing.Timer.
or java.util.Timer if it's not for a Swing app.

Signature
Lew