My Code:
import java.time.*;
import java.time.temporal.*;
class {
public static void main(String[] arguments) {
LocalDateTime now = LocalDateTime.now();
int Seconds = now.get(ChronoField.SECOND_OF_MINUTE);
do{
\\ My Code is Here
} while ( Seconds <= 00);
I have it so that it should repeat when the minute changes but it won't loop unless I start it right before the minute changes. How do get the program to wait until the While becomes true so it will loop?