// CoinExample.java // // Estimate g(X) public class CoinExample { public static void main (String[] argv) { // "Large" # trials. double numTrials = 1000000; Coin coin = new Coin (0.6); // Pr[heads]=0.6 double total = 0; for (int n=0; n