Skip to content

Commit 85233be

Browse files
authored
Update HelloWorld.java
1 parent 0107be9 commit 85233be

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

HelloWorld.java

+10-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
//Program to print Hello World
22

33
class HelloWorld
4-
{
4+
{ //start of class
5+
56
public static void main(String[] args)
6-
{
7-
System.out.println("Hello, World!");
8-
}
9-
}
7+
8+
{ //start of main() method
9+
10+
System.out.println("Hello, World!");//printing Hello World
11+
12+
} //end of main() method
13+
14+
} //end of the class

0 commit comments

Comments
 (0)