Basic Java Language: Difference between revisions
wikademia>Jalbertson m Another spelling fix |
wikademia>Jalbertson m Spelling correction |
||
| Line 65: | Line 65: | ||
This line of code prints ''Hello World'' onto the console. | This line of code prints ''Hello World'' onto the console. | ||
==Comments== | ==Comments== | ||
Comments are notes that the developer can insert into their code. This allows the developer to keep track of their code and helps when developers are collaborating on a project. It is good to write a summary of the following code at the beginning of your methods, classes, etc. The Java compiler completely ignores comments, so you can say | Comments are notes that the developer can insert into their code. This allows the developer to keep track of their code and helps when developers are collaborating on a project. It is good to write a summary of the following code at the beginning of your methods, classes, etc. The Java compiler completely ignores comments, so you can say anything in them | ||
Comments are written using two forward slashes | Comments are written using two forward slashes | ||