Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public boolean payEconomical(LyyraCard card) {
- double eLunch = 2.50;
- if(balance(card) >= eLunch){
- this.economicalSold += 1;
- return true;
- }else{
- return false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement