+ 1

A code to wait for certain number of minutes to check if condition is true

I wrote this example code below, and I want the code to check if the condition is true and if it false to wait for a number of minutes to check again if the condition is true and repeat the same process until the condition is true then move on to the other line of code. I don't want the code to execute below code until the condition is true. I know the code is basic but it just an example. https://code.sololearn.com/c9i362J5u57Q/?ref=app

19th Oct 2017, 10:02 AM
Sibusiso Mbambo
1 Respuesta
0
There is a class in Java called Timer. To use it, type import java.util.Timer; Read its API. I am purposely not giving you the full answer because a programmer should have the skills of self-learning and creativity. Many have struggled with the Java Timer and you'll find more than one hundred guides on how to use it.
22nd May 2018, 11:44 AM
Eldar Bakerman