Skip to content

Instantly share code, notes, and snippets.

@loloof64
Created April 5, 2018 11:34
Show Gist options
  • Save loloof64/5f11b8afc10407ca923bf34a1e51e735 to your computer and use it in GitHub Desktop.
Save loloof64/5f11b8afc10407ca923bf34a1e51e735 to your computer and use it in GitHub Desktop.
WilderJones2
package com.wildcodelolo.wildcodejones2;
public class SecretSentence {
public String writeSecretSentence(String subjectInclining, String subjectMajesty){
return subjectInclining + " s'incline face à " + subjectMajesty;
}
public static void main(String[] args) {
SecretSentence secrets = new SecretSentence();
System.out.println(secrets.writeSecretSentence("le chien", "la lune"));
System.out.println(secrets.writeSecretSentence("le chat", "le soleil"));
System.out.println(secrets.writeSecretSentence("le poisson", "la mer"));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment