xxxxxxxxxx
//This is single line comment
/*
This is
multi line comment
*/
xxxxxxxxxx
//Single line
System.out.println("Hello world"/*+"This is code commented out inline."*/); //You can also put comments at the end
/*
Multi
Line
comment
*/
xxxxxxxxxx
//Single Line
/* Multi Line
Comments
! */
//Comments cannot be runned
/*This can be
runned */
System.out.println("Hello, World");
xxxxxxxxxx
//This is a comment that does not show
/*I am a multi-lined comment that does
not show either*/
System.out.print("This is text");
xxxxxxxxxx
// This is a single-line comment
int myVariable = 10; // This is another single-line comment
xxxxxxxxxx
// declare and initialize two variables
int a =1;
int b = 3;
// print the output
System.out.println("This is output");