Skip to content

Instantly share code, notes, and snippets.

@tiga-tiga
Created May 16, 2018 13:07
Show Gist options
  • Save tiga-tiga/6ba4037d3e47277fd4a17fe7fb0ac30f to your computer and use it in GitHub Desktop.
Save tiga-tiga/6ba4037d3e47277fd4a17fe7fb0ac30f to your computer and use it in GitHub Desktop.
quest methods
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