1 parent 663178e commit 715e204Copy full SHA for 715e204
1 file changed
HelloWorld.java
@@ -1,19 +1,9 @@
1
-package sample;
2
-
3
-public class HelloWorld {
4
5
- public void HelloWorld1() {
6
- System.out.println("Initial");
7
- }
8
9
- public HelloWorld()
10
- {
11
- System.out.println("Calling constructor");
12
13
14
- public static void main(String[] args)
15
16
- HelloWorld obj1= new HelloWorld();
17
- //obj1.HelloWorld1();
18
19
-}
+
+public class HelloWorld {
+ public static void main(String[] args) {
+ // Prints "Hello, World" to the terminal window.
+ System.out.println("Hello, World");
+ }
+}
0 commit comments