-
Notifications
You must be signed in to change notification settings - Fork 0
/
HelloWorld.java
executable file
·25 lines (23 loc) · 1.1 KB
/
HelloWorld.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/******************************************************************************
* * 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.
* *
* ******************************************************************************/
import java.io.*;
class HelloWorldApp {
public static void main(String[] args) {
System.out.println("Hello World!"); // Display the string.
}
}