Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package chapter11_1;
- public class CupDispensor {
- private int numberOfCups;
- /*
- * Answer to question 8.2 begins here
- */
- public boolean isEmpty() {
- return (numberOfCups ==0);
- } //ends here
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement