Code snippets and design patterns from the book Effective Java.