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


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

in Table To:


© 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