Browse Source

docs: fixing typo

pull/2511/head
zanninso 2 months ago
parent
commit
fe514d9618
  1. 12
      subjects/java/checkpoints/good-bye-mars/README.md

12
subjects/java/checkpoints/good-by-mars/README.md → subjects/java/checkpoints/good-bye-mars/README.md

@ -1,14 +1,14 @@
## GoodbyMars ## GoodbyeMars
### Instructions ### Instructions
In a file named `GoodbyMars.java` write a function `goodbyMars` that returns the string 'Good by Mars !'. In a file named `GoodbyeMars.java` write a function `goodbyeMars` that returns the string 'Good bye Mars !'.
### Expected Functions ### Expected Functions
```java ```java
public class GoodbyMars { public class GoodbyeMars {
public static String goodbyMars() { public static String goodbyeMars() {
// your code here // your code here
} }
} }
@ -21,7 +21,7 @@ Here is a possible ExerciseRunner.java to test your function :
```java ```java
public class ExerciseRunner { public class ExerciseRunner {
public static void main(String[] args) { public static void main(String[] args) {
System.out.println(GoodbyMars.goodbyMars()); System.out.println(GoodbyeMars.goodbyeMars());
} }
} }
``` ```
@ -31,6 +31,6 @@ and its output :
```shell ```shell
$ javac *.java -d build $ javac *.java -d build
$ java -cp build ExerciseRunner $ java -cp build ExerciseRunner
Good by Mars ! Good bye Mars !
$ $
``` ```
Loading…
Cancel
Save