Search:

Type: Posts; User: Norm

Search: Search took 0.17 seconds.

  1. Replies
    9
    Views
    1,282

    Re: Count and Print 1 to 10 in Real Time - Help :S

    Check that the {}s are properly paired.
  2. Replies
    9
    Views
    1,282

    Re: Count and Print 1 to 10 in Real Time - Help :S

    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"...
  3. Replies
    9
    Views
    1,282

    Re: Count and Print 1 to 10 in Real Time - Help :S

    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...
  4. Replies
    9
    Views
    1,282

    Re: Count and Print 1 to 10 in Real Time - Help :S

    That should be easy. Look at the Thread class's sleep() method to handle the delay inside of a loop.
Results 1 to 4 of 4