/*****************************************************************
** YTableOfSquares - same as TableOfSquares, except using the
**                   york package
**
** Note: The york package is particularly helpful for programs
** like this -- because of its services for creating nicely
** formated output.
**
** (c) Scott MacKenzie, 2000                             
******************************************************************/
import york.*;

public class YTableOfSquares
{
   public static void main(String[] args)
   {
      final String RULER = York.repeat(15, '=');

      York.println(RULER);
      York.println(" x  Square of x");
      York.println("--- -----------");

      int x = 0;
      while (x < 6)
      {
         York.print(x, "2");
         York.println(x * x, "8");
         x++;
      }
      York.println(RULER);
   }
}

