Comments
by
, January 29th, 2012 at 04:51 PM (1322 Views)
You can make comments in your Java code in two ways, single line comments, and multiple line comments. Below is a single line comment.
//This is a single line comment.
And below is a multiple line comment.
/*This is a multiple line comment. It can span over multiple lines.*/
Comments are used to explain certain code to yourself and others that may be reading your code.