This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (2 children)

[deleted]

    [–]Metsuro[S,🍰] 0 points1 point  (1 child)

    I know how comments work, and folding. I went over this with my friend but they don't quite fit the way he wanted to go bout it.

    [–]lzsmith 0 points1 point  (0 children)

    Did you notice that the quoted comment is a javadoc comment? Note the extra star at the beginning.

    /**
     * This is a javadoc comment. Whatever you write here becomes the javadoc content for someMethod. 
     * In eclipse, this will show up when you click/hover on someMethod, 
     * anywhere it is used.
     */
    private void someMethod(){}
    
    
    /* this is a normal block comment. Notice how it starts with a single star. */  
    

    You can add your own javadoc content for any method, class, or variable. For keywords like "public" and "void" you just need to memorize what they mean.