Application Example, Version 2
Account account = new Account();
/* Read and process all transactions. */
account.withdraw(-amount);
/* Output summary information. */
”Balance: ” + account.getBalance()
”Deposits: ” + account.getDeposits()
”Withdrawals: ” + account.getWithdrawals()