public class Account { int balance; Account(int openingBalance) { balance = openingBalance; } public void deposit(int dollars) { balance = balance + dollars; } public boolean withdraw(int dollars) { if (balance < dollars) return false; else { balance = balance - dollars; return true; } } public boolean transfer (int dollars, Account destination) { if (withdraw(dollars)) { destination.deposit(dollars); return true; } else return false; } public String toString() { return ("$" + balance + ".00"); } }