Lee Appelbaum

@leeappelbaum (0) • 1954
Java program ends before printing all the results
posted to Ask by leeappelbaum

@JustARatherRidi
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?

Java program ends before printing all the results
posted to Ask by leeappelbaum

@SPQR
Thank you. I slept for a couple of seconds and now get my output. Definitely cleaner that printing nulls.
try
{
Thread.sleep(2000);
}
catch (InterruptedException e)
{
}

Java program ends before printing all the results
posted to Ask by leeappelbaum

@JustARatherRidi
https://repl.it/@leeappelbaum/Monte-Hall
Oops - I shared it but forgot to include the link. The purpose of the program is to demonstrate to high school math students that the Monte Hall problem result we get using math plays out in "real life."