java examples from effective java book:Joshua Bloch