mirror of https://github.com/01-edu/public.git
Compare commits
2 Commits
f53a71edef
...
2710f04901
Author | SHA1 | Date |
---|---|---|
zanninso | 2710f04901 | 2 months ago |
zanninso | fe514d9618 | 2 months ago |
4 changed files with 38 additions and 38 deletions
@ -1,36 +0,0 @@
|
||||
## GoodbyMars |
||||
|
||||
### Instructions |
||||
|
||||
In a file named `GoodbyMars.java` write a function `goodbyMars` that returns the string 'Good by Mars !'. |
||||
|
||||
### Expected Functions |
||||
|
||||
```java |
||||
public class GoodbyMars { |
||||
public static String goodbyMars() { |
||||
// your code here |
||||
} |
||||
} |
||||
``` |
||||
|
||||
### Usage |
||||
|
||||
Here is a possible ExerciseRunner.java to test your function : |
||||
|
||||
```java |
||||
public class ExerciseRunner { |
||||
public static void main(String[] args) { |
||||
System.out.println(GoodbyMars.goodbyMars()); |
||||
} |
||||
} |
||||
``` |
||||
|
||||
and its output : |
||||
|
||||
```shell |
||||
$ javac *.java -d build |
||||
$ java -cp build ExerciseRunner |
||||
Good by Mars ! |
||||
$ |
||||
``` |
@ -0,0 +1,36 @@
|
||||
## GoodbyeMars |
||||
|
||||
### Instructions |
||||
|
||||
In a file named `GoodbyeMars.java` write a function `goodbyeMars` that returns the string 'Good bye Mars !'. |
||||
|
||||
### Expected Functions |
||||
|
||||
```java |
||||
public class GoodbyeMars { |
||||
public static String goodbyeMars() { |
||||
// your code here |
||||
} |
||||
} |
||||
``` |
||||
|
||||
### Usage |
||||
|
||||
Here is a possible `ExerciseRunner.java` to test your function : |
||||
|
||||
```java |
||||
public class ExerciseRunner { |
||||
public static void main(String[] args) { |
||||
System.out.println(GoodbyeMars.goodbyeMars()); |
||||
} |
||||
} |
||||
``` |
||||
|
||||
and its output : |
||||
|
||||
```shell |
||||
$ javac *.java -d build |
||||
$ java -cp build ExerciseRunner |
||||
Good bye Mars ! |
||||
$ |
||||
``` |
Loading…
Reference in new issue