package account; public class AccountTester { public static void main(String[] args) { System.out.println("Starting the bank project\n"); Account acct = new Account("Kay", "3423333333"); System.out.println("The account is " + acct); acct.deposit(100.59); System.out.println("After deposit " + acct); acct.deposit(-300); System.out.println("After trying negative deposit " + acct); acct.withdraw(10); System.out.println("Withdrawing 10 gives " + acct); acct.withdraw(50000); System.out.println("Withdrawing 50000 gives " + acct); boolean success = acct.withdraw(100); if (success) System.out.println("Successfully withdrew " + acct); acct.printStatement(); System.out.println("\nNow doing the testing section...\n"); Account acctAlice = new Account("Alice Anybody", "332342"); acctAlice.deposit(500); System.out.println("Alice's account is: " + acctAlice); Account acctAliceOther = new Account("Alice Anybody", "332", 500.0); System.out.println("Alice's other account is: " + acctAliceOther); Account acctTed = new Account("Ted Terrible", "523423443333", 5.00); System.out.println("Ted's account is " + acctTed); System.out.println("\n............Ted's account statement..........."); acctTed.printStatement(); acctTed.deposit(5.0); System.out.println("After depositing $5, Ted's account is " + acctTed); acctAlice.deposit(200.00); System.out.println("After depositing $200, Alice's account is " + acctAlice); acctAlice.withdraw(200.00); System.out.println("After withdrawing $200, Alice's account is " + acctAlice); acctTed.withdraw(6.00); System.out.println("After withdrawing $6, Ted's account is " + acctTed); System.out.println("\n.............Alice's Account..............."); acctAlice.printStatement(); System.out.println("\n.............Ted's Account..............."); acctTed.printStatement(); System.out.println("\n ..................reseting accounts.........."); acctAlice.reset(); acctAlice.printStatement(); acctTed.reset(); acctTed.printStatement(); } }