Skip to content

Instantly share code, notes, and snippets.

@jinahya
Last active September 1, 2015 04:54
Show Gist options
  • Save jinahya/67cc739739cc0e2cc58d to your computer and use it in GitHub Desktop.
Save jinahya/67cc739739cc0e2cc58d to your computer and use it in GitHub Desktop.
public class CodeSnippetsInJavadoc {
/**
* Prints {@code hello, world\n} to {@code stdout}.
*
* <blockquote><pre>{@code
* public static void main(final String[] args) {
* System.out.printf("hello, world\n");
* }
* }</pre></blockquote>
*
* In C you can do like this.
* <blockquote><pre>{@code
* int main(int argc, char *argv[]) {
* printf("hello, world\n");
* return EXIT_SUCCESS;
* }
* }</pre></blockquote>
*
* @param args command line arguments
*/
public static void main(final String[] args) {
System.out.printf("hello, world\n");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment