-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathHello.java
More file actions
21 lines (14 loc) · 735 Bytes
/
Copy pathHello.java
File metadata and controls
21 lines (14 loc) · 735 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Comments allow us to make notes in our programs without affecting the code
// and its behavior. To comment the remainder of the line, use 2 forward slashes
// back-to-back without skipping any spaces. What you are reading right now is
// a comment, for instance.
class Hello { // "Hello" is a class.
public static void main(String [] args) {// The following is a multiline comment:
/*The "main()" function is where all programs start from. In order to create
a working program,YOU MUST ALWAYS USE "public static
void main(String[] args)".
*/
//The following function prints to our operating system's command line.
System.out.println("Hello!");
}// end of main function.
}// end of class "Hello".