Comments
Java has comment conventions similar to those of C++. Two slashes together, “//” make the rest of the line a comment, as follows:
i = 0; // the "to end-of-line" comment
Comments starting with “/*
” make all the characters up to and including the first “*/
”, be a comment. It might stretch over several lines:
/* the "regular multiline" comment goes here. */
Get Just Java™ 2 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.