import java.awt.Color;
import java.io.*;

/**
 * A driver that can be used to demonstrate the
 * ColorFinder class
 */ 
public class DriverOrig
{
    /**
     * The entry point of the application
     *
     * @param args   The command-line arguments (not used)
     */
    public static void main(String[] args) throws IOException
    {
       BufferedReader   console;
       Color            color;       
       ColorFinder      finder;       
       String           name, prompt;
       
       finder  = new ColorFinder();       
       prompt  = "Enter the name/description of a color: ";
       console = new BufferedReader(new InputStreamReader(System.in));

       System.out.println(prompt);
       while ((name = console.readLine()) != null)
       {
          color = finder.getColor(name);
          if (color != null)
          {
             System.out.println(name + ": " + color + "\n");             
          }
          System.out.println(prompt);
       }
    }
}
