Skip to content

Instantly share code, notes, and snippets.

@feehe21
Created September 10, 2018 18:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save feehe21/f558b6cfff3e92cfe345942ca80654e8 to your computer and use it in GitHub Desktop.
Save feehe21/f558b6cfff3e92cfe345942ca80654e8 to your computer and use it in GitHub Desktop.
/******************************************************************************
* Compilation: javac HelloWorld.java
* Execution: java HelloWorld
*
* Prints "Hello, World". By tradition, this is everyone's first program.
*
* % java HelloWorld
* Hello, World
*
* These 17 lines of text are comments. They are not part of the program;
* they serve to remind us about its properties. The first two lines tell
* us what to type to compile and test the program. The next line describes
* the purpose of the program. The next few lines give a sample execution
* of the program and the resulting output. We will always include such
* lines in our programs and encourage you to do the same.
*
******************************************************************************/
public class HelloWorld {
public static void main(String[] args) {
// Prints "Hello, World" to the terminal window.
System.out.println("Hello, World");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment