How to make comments in Java?

To make comments in Java, you can either prepend a line with // or put your comment between /* and */.

Here's how you do it:

// your comment goes here

/* your comment goes here */

/*
your
comment
goes
here
*/