Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2014
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.22 KB | None | 0 0
  1. public boolean addGrain(){
  2. boolean added = false;
  3.  
  4. if(amountofgrain == 150){System.out.println("The silo is currently full with 150 litres of grain"); added = false;}
  5. else{amountofgrain++; added = true;}
  6. return added;
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement