import java.awt.*;
import java.awt.event.*;
import java.applet.Applet;

public class two extends Applet {

   private int pauseLength;       // Speed control from HTML tag

   public void init() {
      pauseLength = Integer.parseInt(getParameter("PauseLength"));
   }

   public void paint(Graphics g) {
      int i = 1;
      while (i <= 12) {         // 12 repetitions
         g.drawString("2 * " + i + " = " + (2*i), 20, 20*i);
         i = i + 1;
         pause(pauseLength);    // To slow the drawing down to see the loop order
      }
   }
   
   private void pause(int howLong) {
      for (int count = 0; count < howLong; count++);
   }

}