Add javadoc example
Effective java example 4