How do I make a little comment box? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How do I make a little comment box?

I saw people write in codes little gray boxes where they can explain stuff in.. I'd like to make this too but I can't seem to figure out how to make 1 under my code. I want to make one where it starts with the two forward slashes. class Lyrics { public static void main(String [] args) { System.out.println ("Sound of Silence"); System.out.println ("________________"); System.out.println ("Hello darkness my old friend"); } } //Hello darkness, my old friend I've come to talk with you again Becaus

9th Feb 2018, 7:17 AM
Mr. Cat
Mr. Cat - avatar
2 Answers
+ 16
U can use multiline comments for that /* type here */ //like this 👇 class Lyrics { public static void main(String [] args) { System.out.println ("Sound of Silence"); System.out.println ("________________"); System.out.println ("Hello darkness my old friend"); } } /* Hello darkness, my old friend I've come to talk with you again Becaus */
9th Feb 2018, 7:30 AM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 2
Thanks
9th Feb 2018, 7:30 AM
Mr. Cat
Mr. Cat - avatar