•146
process…ForAccount( BankAccount acct )
•
•165
else if ( trans.startsWith("ca" ) ||
•166
trans.startsWith("ch"
) ) {
•167 int amount = atm.readInt
• ( " amount of check: " );
•168 atm.println(" cashed check for "
•169
((CA)acct).honorCheck(amount ));
•170
}
•Note use of || (or). Use &&
for and.
•“c” is ambiguous since we can
close account