Hi,
I need to create a time delay before I call a method.
public void brewDrink(CoffeeMachine coffeemachine) {
try {
coffeemachine.displayDrinkBrewing();
Thread.sleep(7000);
setDrinkReady(coffeemachine);
} catch (InterruptedException ex) {
}
}
This doesn't work, the method isn't called. Any help or pointers are welcome!