Javadoc utility enables you to keep the code and the documentation in sync easily. The javadoc utility lets you put your comments right next to your code, inside your ".java" source files.
All you need to do after completing your code is to run the Javadoc utility to create your HTML documentation automatically.