// CSE 143, Autumn 2013 // This 'client' program uses a BankAccount object and calls // the printLog method we wrote in class. public class UseAccount { public static void main(String[] args) { BankAccount account = new BankAccount(19); account.deposit(7.84); account.withdraw(2.53); account.deposit(6.19); account.deposit(2.58); account.withdraw(999.99); // should fail (no transaction log) account.printLog(); System.out.println(); account.withdraw(4.18); account.deposit(-123.45); // should fail (no transaction log) account.printLog(); } }