I have a program that contains a do-while loop, inside of which it
(re)calculates a array of labels XY[x][y], each one consisting of a
single digit, and print them forming an x by y rectangle. What I want to
do is slow the loop down so I can see the different formations of the
digits; so I tried
try {
Thread.sleep(10 00);
} catch(Interrupt edException ex) {}
at the end of the loop, expecting to see the number formations changing
every second, like seeing a film frame by frame. Instead, however, there
was a loooooong delay, and then the loop reached almost instantaneously
its conclusion.
How can I stop the execution of the loop until I have time to see the
results in each pass?
Eustace
--
It ain't THAT, babe! - A radical reinterpretatio n
(re)calculates a array of labels XY[x][y], each one consisting of a
single digit, and print them forming an x by y rectangle. What I want to
do is slow the loop down so I can see the different formations of the
digits; so I tried
try {
Thread.sleep(10 00);
} catch(Interrupt edException ex) {}
at the end of the loop, expecting to see the number formations changing
every second, like seeing a film frame by frame. Instead, however, there
was a loooooong delay, and then the loop reached almost instantaneously
its conclusion.
How can I stop the execution of the loop until I have time to see the
results in each pass?
Eustace
--
It ain't THAT, babe! - A radical reinterpretatio n
Comment