import java.util.*;


public class TFDriver
{
    public static void main(String[] args)
    {
       int               amount;
       String[]          test;
       

       test = new String[7];

       // center()
       test[0] = "Center Me";
       System.out.println("|"+TextFormatter.center(test[0], 20)+"|");
       System.out.println("|"+TextFormatter.center(test[0], 21)+"|");
       
       test[1] = "I'm A Little Teapot, Short and Stout";
       System.out.println("|"+TextFormatter.center(test[1], 26)+"|");
       System.out.println("|"+TextFormatter.center(test[1], 19)+"|");

       // dollars()
       amount = 1;       
       for (int i=0; i<5; i++)
       {
          System.out.println("|"+TextFormatter.dollars(amount,10)+"|");
          amount *= 10;
       }
          
       // indent()
       test[2] = "Indent Me";
       System.out.println("|"+TextFormatter.indent(test[2], 20)+"|");
       System.out.println("|"+TextFormatter.indent(test[2], 30)+"|");

       test[3] = "Is this a dagger which I see before me,\n"+
                 "The handle toward my hand? Come, let me clutch thee.\n"+
                 "I have thee not, and yet I see thee still.\n"+
                 "Art thou not, fatal vision, sensible\n"+
                 "To feeling as to sight? Or art thou but\n"+
                 "A dagger of the mind, a false creation,\n"+
                 "Proceeding from the heat-oppressed brain?";
       System.out.println(TextFormatter.indent(test[3], 20));
       System.out.println(TextFormatter.indent(test[3], 47));

       // positiveInt()
       for (int width=3; width<6; width++)
       {
          System.out.println("|"+TextFormatter.positiveInt( -10, width)+"|");
          System.out.println("|"+TextFormatter.positiveInt(   0, width)+"|");
          System.out.println("|"+TextFormatter.positiveInt(   1, width)+"|");
          System.out.println("|"+TextFormatter.positiveInt(  10, width)+"|");
          System.out.println("|"+TextFormatter.positiveInt( 100, width)+"|");
       }
       
       // repeat()
       for (int length=1; length<6; length++)
       {
          System.out.println("|"+TextFormatter.repeat('*', length)+"|");
       }
       
       

       // wrap()
       test[4] = "George is a little monkey, and all monkeys are curious. But no monkey is as curious as George.";
       test[5] = TextFormatter.wrap(test[4], 40);       
       test[6] = TextFormatter.wrap(test[4], 61);
       System.out.println(test[5]);
       System.out.println(test[6]);
       
       // wrap() and indent()
       System.out.println(TextFormatter.indent(test[5], 10));
       System.out.println(TextFormatter.indent(test[6], 13));


       // yesNo()
       System.out.println("|"+TextFormatter.yesNo(true)+"|");
       System.out.println("|"+TextFormatter.yesNo(false)+"|");
    }
}
