Code created while preparing presentations for Effective Java Sessions.