Comments
-
Heavy commenting is required for class assignments.
-
Two ways to comment:
-
// Put a comment on one line, or even after a statement
-
/* surrounds comments over multiple lines */
-
Comments are as important as the textbooks always say. Never underestimate
them!
-
Help others understand code. Especially in an object oriented environment.
-
Remember what you were thinking. You will forget after writing
thousands of lines of code!
-
In Java, the javadoc utility generates documentation based on your comments.
Next
Home
Internet II: Day 2