diff options
author | terminaldweller <thabogre@gmail.com> | 2022-02-19 15:42:14 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2022-02-19 15:42:14 +0000 |
commit | 4f6f33fdb2530a1ee3c835416b08cc1c6fd7e403 (patch) | |
tree | 0008012e628a0b25a30cedb185fb300617156be9 /src/main/java | |
parent | Initial commit (diff) | |
download | mdrtl-4f6f33fdb2530a1ee3c835416b08cc1c6fd7e403.tar.gz mdrtl-4f6f33fdb2530a1ee3c835416b08cc1c6fd7e403.zip |
updates
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/hello/Greeter.java | 6 | ||||
-rw-r--r-- | src/main/java/hello/HelloWorld.java | 8 |
2 files changed, 14 insertions, 0 deletions
diff --git a/src/main/java/hello/Greeter.java b/src/main/java/hello/Greeter.java new file mode 100644 index 0000000..668f8fe --- /dev/null +++ b/src/main/java/hello/Greeter.java @@ -0,0 +1,6 @@ +package hello; +public class Greeter { + public String sayHello() { + return "Hello World!"; + } +} diff --git a/src/main/java/hello/HelloWorld.java b/src/main/java/hello/HelloWorld.java new file mode 100644 index 0000000..0f6004e --- /dev/null +++ b/src/main/java/hello/HelloWorld.java @@ -0,0 +1,8 @@ +package hello; + +public class HelloWorld { + public static void main(String [] args) { + Greeter greeter = new Greeter(); + System.out.println(greeter.sayHello()); + } +} |