I did review your code but the leap from my basic C knowledge to JAVA was a bit too much in 2 lines of code. Also i'm not using the natures in the equation to keep it simple.
ok, my train of thought is this:
you have, lets say, a 50% chance of hitting heads or tails, right?
how many times do...