Java program ends before printing all the results
leeappelbaum (0)

I am running a simulation that prints results after each iteration. If I run 100 iterations, I may see anywhere from 40 to 75 results printed to the output window - it's different every time. When I copied-pasted into BlueJ, all the output was printed. I am running on a Macbook Pro under Chrome, Safari and Firefox, all with the same results. Adding a loop at the end to print one million nulls succeeds in writing the real data, but I would like to avoid such a kludge. Thank you.

You are viewing a single comment. View All
Answered by SPQR (509) [earned 5 cycles]
View Answer
leeappelbaum (0)

MacBook Pro (Retina, 15-inch, Mid 2015)
2.2 GHz Intel Core i7
Running 10.11.6
I updated my script - are you running a version with either the one million prints or the sleep at the end of the Main module?