Working code examples inspired by Joshua Bloch's Effective Java