Skip to content

Instantly share code, notes, and snippets.

@kalaiselvan369
Last active May 24, 2017 06:53
Show Gist options
  • Save kalaiselvan369/a37d1a80e5cdc53268877370cb6fb759 to your computer and use it in GitHub Desktop.
Save kalaiselvan369/a37d1a80e5cdc53268877370cb6fb759 to your computer and use it in GitHub Desktop.
Java comments
##Method in the same class:
/** See also {@link #myMethod(String)}. */
void foo() { ... }
##Method in a different class, either in the same package or imported:
/** See also {@link MyOtherClass#myMethod(String)}. */
void foo() { ... }
##Method in a different package and not imported:
/** See also {@link com.mypackage.YetAnotherClass#myMethod(String)}. */
void foo() { ... }
##Label linked to method, in plain text rather than code font:
/** See also this {@linkplain #myMethod(String) implementation}. */
##void foo() { ... }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment