I would like to comment a variable like I used to do in doxygen and I wonder if there is a way to comment variables after declaring them in the same line. (I've never used javadoc before =/ ).
Writing Javadoc Comments In general, Javadoc comments are any multi-line comments (" /** ... */ ") that are placed before class, field, or method declarations. They must begin with a slash and two stars, and they can include special tags to describe characteristics like method parameters or return values.
Adding JavaDoc comments The basic rule for creating JavaDoc comments is that they begin with /** and end with */. You can place JavaDoc comments in any of three different locations in a source file: Immediately before the declaration of a public class. Immediately before the declaration of a public field.
In the Package Explorer view, select a Java project and click Project > Generate Javadoc with Diagrams > Automatically. In the Generate Javadoc wizard, under Javadoc command, select the Javadoc command (an executable file). Note: Only Oracle JDK Version 1.4.
Javadoc Comments A Javadoc comment begins with a forward slash followed by two star characters: /** and ends with a start character followed by a forward slash: */ . A Javadoc comment must appear immediately before the declaration of any class, interface, constructor, method, or field that the comment describes.
Yes, you can use /** comment */
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With