Created
May 16, 2018 13:07
-
-
Save tiga-tiga/6ba4037d3e47277fd4a17fe7fb0ac30f to your computer and use it in GitHub Desktop.
quest methods
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package fr.wildcodeschool.methodQuest; | |
public class SecretSentence { | |
public static String writeSecretSentence(String firstParameter, String secondParameter) { | |
String sentence = firstParameter + " s'incline face à " + secondParameter; | |
return sentence; | |
} | |
public static void main(String... args) { | |
String sentence = writeSecretSentence("lion", "chat"); | |
System.out.println(sentence); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment