/** * This is a tester class for the Bank class -- i.e., it shows how * to use the Bank class once it has been written. * * @author cs161 * @version sp17 */ public class BankTester{ public static void main(String[] args){ Bank theBank = new Bank("WellsFargo"); // Create our first account BankAccount myChecking = theBank.openAccount("Bailey", 40.00); System.out.println(theBank.toString()); // Create a second account BankAccount hisChecking = theBank.openAccount("Shawn", 210.00); System.out.println(theBank.toString()); // Make a deposit on this second account theBank.deposit(hisChecking, 30.00); // Transfer money from this account to the first account theBank.transfer(10.00, hisChecking, myChecking); } }