How to suspend current thread for 20 seconds in java?
A:
you may also want to include the try catch:
try {
Thread.sleep(20*1000);
} catch(InterruptedException e) { }
mkoryak
2009-09-10 19:19:32
should be InterruptedException, not all exceptions in general
Jason S
2009-09-10 19:34:54