UNB/ CS/ David Bremner/ teaching/ java/ ProductTest1.java
public class ProductTest1
{  public static void main(String[] args)
   {  Product best = new Product();

      boolean done = false;
      while (!done)
      {  Product next = new Product();
         next.read();
         if (next.isBetterThan(best)) best = next;

         String answer;
         System.out.print("More data? (Y/N) ");
         answer = Console.in.readLine();
         if (!answer.toUpperCase().equals("Y"))
            done = true;
      }

      System.out.print("The best bang for the buck is ");
      best.print();
   }
}