T
TheTravellingSalesman
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.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
?