This commit is contained in:
Debucquoy
2023-03-09 11:38:23 +01:00
parent d3c715a655
commit 5456020f7c
26 changed files with 1604 additions and 0 deletions

21
q2/cours6/Question.java Normal file
View File

@@ -0,0 +1,21 @@
public class Question {
private String text;
private String response;
private String user_input;
public Question(text, response){
this.text = text;
this.response = response;
}
public void Poser(){
Scanner resp = new Scanner(System.in);
System.out.println(text + ": ")
user_input = resp.nextLine();
}
public boolean Verifier(){
return user_input == response;
}
}