Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class AnyCorrectChoiceQuestion {
- public String question;
- public String wrongChoice;
- public String wrongChoice2;
- public String correctChoice1;
- public String correctChoice2;
- public String allAnswers = correctChoice1 + " , " + correctChoice2;
- public boolean checkAnswer(String response){
- if(response.equals(correctChoice1) || response.equals(correctChoice2)){
- return true;
- }
- else{
- return false;
- }
- }
- public String answer(){
- return allAnswers;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment