Updaded README with examples, etc.

This commit is contained in:
Erik C. Thauvin 2023-08-28 02:12:07 -07:00
parent cfd6bb7c18
commit 0e48265890
3 changed files with 35 additions and 10 deletions

View file

@ -1,11 +1,11 @@
package com.example;
public class ExamplesMain {
public String getMessage() {
return "Hello World!";
}
public static void main(String[] args) {
System.out.println(new ExamplesMain().getMessage());
}
public String getMessage() {
return "Hello World!";
}
}

View file

@ -1,6 +1,10 @@
package com.example;
public class ExamplesTest {
public static void main(String[] args) {
new ExamplesTest().verifyHello();
}
void verifyHello() {
if (!"Hello World!".equals(new ExamplesMain().getMessage())) {
throw new AssertionError();
@ -8,8 +12,4 @@ public class ExamplesTest {
System.out.println("Succeeded");
}
}
public static void main(String[] args) {
new ExamplesTest().verifyHello();
}
}