Java code for a program that produces a Punnett square