aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2022-02-19 15:42:14 +0000
committerterminaldweller <thabogre@gmail.com>2022-02-19 15:42:14 +0000
commit4f6f33fdb2530a1ee3c835416b08cc1c6fd7e403 (patch)
tree0008012e628a0b25a30cedb185fb300617156be9 /src/main
parentInitial commit (diff)
downloadmdrtl-4f6f33fdb2530a1ee3c835416b08cc1c6fd7e403.tar.gz
mdrtl-4f6f33fdb2530a1ee3c835416b08cc1c6fd7e403.zip
updates
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/hello/Greeter.java6
-rw-r--r--src/main/java/hello/HelloWorld.java8
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());
+ }
+}