<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">/**
 * A driver for illustrating the Chirp and EnglishChirp
 * classes
 *
 * @author  Prof. David Bernstein, James Madison University
 * @version 1.0
 */
public class ChirpDriver
{
    /**
     * The entry point of the application
     *
     * @param args The command line arguments
     */
    public static void main(String[] args) 
    {

	if ((args.length &gt; 0) &amp;&amp; (args[0].equals("-old"))) 
	{
	    ExpandedChirp     chirp;
	    chirp = new ExpandedChirp("This is it.  TTFN!");
	    System.out.println(chirp.getText());
	}
        else
        {
	    Chirp        chirp;
	    chirp = new Chirp("This is it.  TTFN!");
	    System.out.println(chirp.getText());
	}
    }
}
</pre></body></html>