/**
 * A driver for illustrating the Message and EnglishMessage
 * classes
 *
 * @author  Prof. David Bernstein, James Madison University
 * @version 1.0
 */
public class MessageDriver
{
    /**
     * The entry point of the application
     *
     * @param args The command line arguments
     */
    public static void main(String[] args) 
    {

	if ((args.length > 0) && (args[0].equals("-old"))) 
	{
	    EnglishMessage     msg;
	    msg = new EnglishMessage("This is it.  TTFN!");
	    System.out.println(msg.getText());

	} else {

	    Message        msg;
	    msg = new Message("This is it.  TTFN!");
	    System.out.println(msg.getText());
	}

    }
}
