Search:

Type: Posts; User: looper

Search: Search took 0.26 seconds.

  1. Re: How do you write a timed 'while loop' which prints the no. of loops after a set t

    I changed it to System.out.println(+timeNow);timeNow++; and now I get java printing 1349274494256 forever...
  2. Re: How do you write a timed 'while loop' which prints the no. of loops after a set t

    Ok... I'm a complete noob at java here so I don't really understand what you mean by that... (even though I get the simple math part)

    :/

    What I want to do is create a while loop that times 5...
  3. How do you write a timed 'while loop' which prints the no. of loops after a set time?

    In Java, I need to write a while loop that will run for 10 seconds and after every 50 loops it will print the number of loops run so far in that set time.

    This is my attempt to the problem so far:...
Results 1 to 3 of 3