•while
(!(transaction = atm.readWord
• (" transaction:
")).equals("quit")) {
•
. . .
•
else if (transaction.equals("close")) {
•
close(acct); // private in Bank
•
break;
• }
•}
•Require whole word “close”
to close account, use “cash check” or “check” to cash check
•