Search:

Type: Posts; User: djl1990

Search: Search took 0.10 seconds.

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

    They appear to be correctly paired

    I should also add 'sleep' is yellow underlined and it says 'Thread.sleep called in loop'

    --- Update ---

    Update:

    All fixed. Thanks for your help.
  2. Re: Count and Print 1 to 10 in Real Time - Help :S

    Having added the try catch block i have the following:


    package latesttasks;

    // Count and Print 1 to 10 in Real Time.
    // Threads
    import java.util.*;

    public class task15 {
  3. Re: Count and Print 1 to 10 in Real Time - Help :S

    Here is the full error:



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

    It doesnt seem to like this:


    public static void main(String[] args) {

    for (int counter = 1; counter <= 10; counter++){
    System.out.println(counter);
    ...
  5. Count and Print 1 to 10 in Real Time - Help :S

    Hi all,

    I need to make a Program that once the user clicks run, the Program prints out 1 to 10 with a second gap in between so it actually prints out in real time:

    The output would just be:
    ...
Results 1 to 5 of 5