This site requires JavaScript, please enable it in your browser!
Greenfoot back
BladeOfFire
BladeOfFire wrote ...

2017/4/6

Terminology

BladeOfFire BladeOfFire

2017/4/6

#
I was scrolling through a code of a game and it had some code but was in a //. I don't know what that is and am really confused.
danpost danpost

2017/4/6

#
BladeOfFire wrote...
I was scrolling through a code of a game and it had some code but was in a //. I don't know what that is and am really confused.
The double slash is the beginning of a comment. which lasts to the end of the line. It is documentation that the compiler ignores and therefore in no way is part of the actual code. It is explained in the java tutorials on this page in the section Source code comments.
You need to login to post a reply.