Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7b9176b

Browse filesBrowse files
committed
Update Hello World page
1 parent c6c7bec commit 7b9176b
Copy full SHA for 7b9176b

File tree

Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed

‎src/pages/docs/hello-world.mdx

Copy file name to clipboardExpand all lines: src/pages/docs/hello-world.mdx
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ Hello, World!
3232

3333
## How Java "Hello, World!" Program Works?
3434

35-
#### 1. Your First Program
35+
### 1. Your First Program
3636

3737
In Java, any line starting with `//` is a comment. Comments are intended for users reading the code to understand the intent and functionality of the program. It is completely ignored by the Java compiler (an application that translates Java program to Java bytecode that computer can execute). To learn more, visit [Java comments](/comments).
3838

39-
#### 2. class HelloWorld
39+
### 2. class HelloWorld
4040

4141
In Java, every application begins with a class definition. In the program, HelloWorld is the name of the class, and the class definition is:
4242

@@ -49,7 +49,7 @@ class HelloWorld {
4949

5050
For now, just remember that every Java application has a class definition, and the name of the class should match the filename in Java.
5151

52-
#### 3. public static void main(String[] args)
52+
### 3. public static void main(String[] args)
5353

5454
This is the main method. Every application in Java must contain the main method. The Java compiler starts executing the code from the main method.
5555

@@ -63,7 +63,7 @@ public static void main(String[] args) {
6363
}
6464
```
6565

66-
#### 4. System.out.println("Hello, World!");
66+
### 4. System.out.println("Hello, World!");
6767

6868
The code above is a print statement. It prints the text `Hello, World!` to standard output (your screen). The text inside the quotation marks is called String in Java.
6969

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.