Changed Question to be non case sensitive when comparing answers.
This commit is contained in:
parent
64ae98b86d
commit
5138e5d5a7
1 changed files with 2 additions and 2 deletions
|
@ -43,7 +43,7 @@ public class Question {
|
|||
.append(" is the English for ")
|
||||
.append("'").append(listOfCorrectQuestions.get(i).getWelsh()).append("'")
|
||||
.append(". ");
|
||||
if(listOfCorrectQuestions.get(i).getWelsh().equals(listOfAnswers.get(i))){
|
||||
if(listOfCorrectQuestions.get(i).getWelsh().equalsIgnoreCase(listOfAnswers.get(i))){
|
||||
sb.append("Correct!");
|
||||
correctAnswers++;
|
||||
}else{
|
||||
|
@ -60,7 +60,7 @@ public class Question {
|
|||
.append("'").append(listOfCorrectQuestions.get(i).getWelsh()).append("'")
|
||||
.append(". ");
|
||||
|
||||
if(listOfCorrectQuestions.get(i).getEnglish().equals(listOfAnswers.get(i))){
|
||||
if(listOfCorrectQuestions.get(i).getEnglish().equalsIgnoreCase(listOfAnswers.get(i))){
|
||||
sb.append("Correct!");
|
||||
correctAnswers++;
|
||||
}else{
|
||||
|
|
Reference in a new issue