What is a Javadoc comment in Java, and when should it be used?
Javadoc comments are used to generate API documentation for classes and methods. They are written using '/**' and '*/' and should be used for documenting public methods and classes.
Great! You've explained Javadoc comments perfectly.
Can you show an example of how you would document a method using Javadoc, including parameters and return values?