/** * Run the bank simulator. */ public class BankSimulator { public static void main(String[] args) { Bank b = new Bank(); CustomerProvider cp = new CustomerProvider(b, 1.0); b.openBank(); cp.startCustomerFlow(); try { Thread.sleep(10000); } catch (Exception ee) {} System.out.println("Closing Bank"); cp.stopCustomers(); b.closeBank(); } }