/* ThreadDemo.java is a simple simulation of a bank. * * Started by: Charles Hoot, for Hands On Java. * Date: July, 2000       * Finished by: * Purpose: To determine the average time a customer will wait *			in line. * *****************************************************************/import BankLine;//import Teller;import CustomerGenerator;//import ReportGenerator;class ThreadDemo extends Object{	public static void main(String args[]){		System.out.println("\nStarting up the Bank Simulation!\n");		//create a line		BankLine line = new BankLine("regular", true);				//create two tellers		//Teller teller1 = new Teller(line, "Anna", true);		//Teller teller2 = new Teller(line, "Betty", true);				//create a Customer generator		CustomerGenerator cGenerator = new CustomerGenerator(line, true);				//create a Report generator		//ReportGenerator rGenerator = new ReportGenerator(line, 10000);				//start the threads		cGenerator.start();		//rGenerator.start();		//teller1.start();		//teller2.start();		}} // end of class
