Basic HTML version of Foils prepared Mar 20 1999

Foil 9 Debug Statements on the Console

From Java Academy:Polls and Throwing Dice NPAC Java Academy February--April 99 -- Mar 20 1999. by Geoffrey Fox


I got a bit worried in these long computations. Was the program running OK?
So I used a useful dodge of inserting print statements to the Java Console
(if(i%5000 == 0 ) System.out.println ("Generating " +i);)
Program wrote a message every 5000 trials.
I also wrote out some messages in paint method to show it had got there.
Note messages in paint are repeated each time page reloads but earlier messages from init are not.



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sat Mar 20 1999