Check that the {}s are properly paired.
Type: Posts; User: Norm
Check that the {}s are properly paired.
This part says that the sleep() method can throw an exception. Your code must be ready to handle that exception. The normal way is to put that statement inside of a try{}catch(){} block to "catch"...
Can you post the full text of the error message that shows where the exception happened?
You don't need to throw an exception.
The code you posted should generate a compile time error, not a...
That should be easy. Look at the Thread class's sleep() method to handle the delay inside of a loop.