Previous pageimport java.awt.Graphics; import java.applet.Applet; import java.awt.*; //written by Seabury Hall SuperComputer class of 1998 public class life extends Applet { private Choice choiceButton; Choice myChoice = new Choice(); int arraySize = 10; int genlimit = 20; int genrow; int life[] [] = new int[arraySize] [arraySize]; int originalGen[] [] = new int[arraySize] [arraySize]; int nextGen [] [] = new int [arraySize] [arraySize]; int generations [] = new int[genlimit]; boolean first = true,colors = false; TextField input; Label inLabel; int xorigin=0,yorigin=100; int numberofGens=0; int lifeNum=3; Font f = new Font("TimesRoman",Font.BOLD,12), f2 = new Font("TimesRoman",Font.PLAIN,10), f3 = new Font("TimesRoman",Font.PLAIN,12); public void init() { input = new TextField(3); inLabel = new Label("<--- Change number for life."); int row,col; for(row=0;row=1)&&(genCount<=5)) yorigin = 80; if ((genCount>=6)&&(genCount<=10)) yorigin = 195; if ((genCount>=11)&&(genCount<=15)) yorigin = 310; if ((genCount>=16)&&(genCount<=20)) yorigin = 425; g.setColor( Color.blue ); g.drawString("Generation: "+String.valueOf(genCount) ,xorigin+10,yorigin+4); int row,col; for( row=0;row