cours_progra/bac1/q2/algo/cours6/Question.java
Debucquoy 4fd7542f03
.
2023-09-20 15:18:20 +02:00

22 lines
387 B
Java

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;
}
}