Monte Carlo Simulation in Java