From 6873298290e6a2b424244eb07b570dbe0b127a15 Mon Sep 17 00:00:00 2001 From: zanninso Date: Wed, 27 Mar 2024 15:20:54 +0000 Subject: [PATCH] rename helloworld exercise to good-by-mars --- .../{helloworld => good-by-mars}/README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) rename subjects/java/checkpoints/{helloworld => good-by-mars}/README.md (58%) diff --git a/subjects/java/checkpoints/helloworld/README.md b/subjects/java/checkpoints/good-by-mars/README.md similarity index 58% rename from subjects/java/checkpoints/helloworld/README.md rename to subjects/java/checkpoints/good-by-mars/README.md index 35644fda..ff96d1d7 100644 --- a/subjects/java/checkpoints/helloworld/README.md +++ b/subjects/java/checkpoints/good-by-mars/README.md @@ -1,14 +1,14 @@ -## HelloWorld +## GoodbyMars ### Instructions -In a file named `HelloWorld.java` write a function `helloWorld` that returns the string 'Hello World !'. +In a file named `GoodbyMars.java` write a function `goodbyMars` that returns the string 'Good by Mars !'. ### Expected Functions ```java -public class HelloWorld { - public static String helloWorld() { +public class GoodbyMars { + public static String goodbyMars() { // your code here } } @@ -21,7 +21,7 @@ Here is a possible ExerciseRunner.java to test your function : ```java public class ExerciseRunner { public static void main(String[] args) { - System.out.println(HelloWorld.helloWorld()); + System.out.println(GoodbyMars.goodbyMars()); } } ``` @@ -31,6 +31,6 @@ and its output : ```shell $ javac *.java -d build $ java -cp build ExerciseRunner -Hello World ! +Good by Mars ! $ ```