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.