public class Tester {
public static void main(String[] args){
String customerName = "Lou";
BankAccount account1 = new BankAccount(customerName );
account1.deposit(1000.0);
account1.deposit(500.0);
account1.withdraw(200.0);
account1.withdraw(1200.0);
account1.withdraw(2200.0);
String customerName2 = "Sue";
BankAccount account2 = new BankAccount(customerName2 );
account2.deposit(1500.0);
account2.withdraw(1200.0);
account2.withdraw(200.0);
System.out.println(account1);
account1.printHistory();
System.out.println();
System.out.println(account2);
account2.printHistory();
}
}
public class BankAccount {
public void printHistory() {
transactions.printHistory();
}
}