UNB/ CS/ David Bremner/ teaching/ java/ Elist2.java
import ccj.*;

public class Elist2
{  public static void main(String[] args)
   {  EmployeeList staff = new EmployeeList();
      boolean done = false;
      while (!done)
      {  System.out.print("Enter name: ");
         String name = Console.in.readLine();
         if (Console.in.fail()) done = true;
         else staff.insert(new Employee(name, 0));
      }
      staff.print();
   }
}