Cookies with Java
posted 8 years ago
That's pretty good. However everybody I know knows that it's inefficient to open the cupboard twice, once to get the bowl, and once to get the tinfoil and baking tray. And the cupboard should be closed in a finally block, if a SnackAttackException is thrown, it will never get closed.