Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public boolean addGrain(){
- boolean added = false;
- if(amountofgrain == 150){System.out.println("The silo is currently full with 150 litres of grain"); added = false;}
- else{amountofgrain++; added = true;}
- return added;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement