Mini-Lab: Method Javadocs


In this mini-lab, you will look at the javadoc comments that precede method definitions, including how they specify what parameters a method expects to receive and what type of value (if any) a method returns.


Exploring Javadoc Comments

In this mini-lab, you will look at the javadoc comments in the Clock class from the Timestamp Mini-Lab or the TalkingRobot project, and compare the comments in the class to its class documentation. (The class documentation for a class is the page you see when you choose Documentation rather than Source Code in the upper-right corner of a BlueJ editing window.) Class documentation is generated from source code, similar to how compiled code that the computer can read is generated from source code.

Remember that javadoc comments are ones that start with a double-asterisk (/**).