|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A machine that dispenses candy. Newly created candy machines must always have at least one piece of candy.
| Method Summary | |
|---|---|
java.lang.String |
get()
Get a piece of candy. |
boolean |
isEmpty()
Determine if the machine is empty. |
| Method Detail |
public java.lang.String get()
throws CandyMachineException
CandyMachineException - If unable to return a piece of candy (e.g., if empty).public boolean isEmpty()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||