How to suspend current thread for 20 seconds in java?
Thread.sleep(20*1000);
Thread.sleep(20000)
you may also want to include the try catch:
try {
Thread.sleep(20*1000);
} catch(InterruptedException e) { }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With