Exercise : 2.44. Instructions: Heads or tails?

  • Find and open the CoinFlip Java program in the exercises2 package.
  • Complete the code so that it prints heads or tails on each run of the program, with equal probability.