7. i typed this and it sayes it is wrong why?

public class Comments {
public static void main(String args) {

	System.out.println //("Noise!");

 /*
 hello world
 n;ohnrr;/
 *\



	
}

}
i typed this and it sayes it is wrong why?:laughing:

Hi to make a coment on a single line you should put the // at the begin of the line like that

    //I am a coment

//me too

and to make a multi line coment you should use /* */

1 Like
You used "*\" on the closing of the second comment, it's supposed to be "*/"
Dont worry I made the same mistake :P