Last active
September 1, 2015 04:54
-
-
Save jinahya/67cc739739cc0e2cc58d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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