In
eclipse, it can be configured to generate the comments automatically.
Go to
Windows -> Preferences -> Java -> Code style -> Code Templates in
eclipse.
Here we can configure the comment formats to be generated automatically.
Otherwise, click the "import" button and select the tempalte xml file (click
here for a sample template xml ).
On creating a new java class, check the "Generate Comments" checkbox(find it at the bottom of the wizard window) .
To add the comment template, for a method, right click on method name -> Source -> Generate element comment (Shift + Alt + j).