Lecture 20
6
Use better return value
•
•    public String withdraw( int amount ){
–     if ( amount <= balance ){
–        incrementBalance( - amount );
–        return “” // or null
–     }
–     return “insufficient funds”;
–  }
•Client tests return value, has more information
–can print, or parse, or return something to whoever called it