To create a single-line comment in Java, you start with the characters: code example
Example: java comments
//Single line
System.out.println("Hello world"/*+"This is code commented out inline."*/); //You can also put comments at the end
/*
Multi
Line
comment
*/