Lecture 20
3
Help! What next ?
First idea: print a message
public void withdraw( int amount )
{
if ( amount <= balance ) {
incrementBalance( - amount );
}
else {
System.out.println(sorry);
}
}