← Java from Scratch
Lesson 3 of 88 · 10 XP
Comments
Theory and problem statement
Machine translation, not yet reviewed by a native speaker.
// single-line
/* multi-line
comment */
/**
* Javadoc — documentation: the reference for classes is built from comments like this.
* @param args command-line arguments
*/
A comment is a handy way to switch off a line temporarily. A good comment explains why, not what.
Task. Comment out the line with the debug output (don't delete it), so that the program prints only
Start and Finish.
Sign up for free to solve this task right in your browser: code editor, running, test checks and hints.