diff --git a/src/Welsh Vocabulary Tutor/src/main/java/uk/ac/aber/cs22120/group20/selfassessment/MatchTheMeaningQuestion.java b/src/Welsh Vocabulary Tutor/src/main/java/uk/ac/aber/cs22120/group20/selfassessment/MatchTheMeaningQuestion.java index e652b33..94b30ec 100644 --- a/src/Welsh Vocabulary Tutor/src/main/java/uk/ac/aber/cs22120/group20/selfassessment/MatchTheMeaningQuestion.java +++ b/src/Welsh Vocabulary Tutor/src/main/java/uk/ac/aber/cs22120/group20/selfassessment/MatchTheMeaningQuestion.java @@ -2,14 +2,17 @@ package uk.ac.aber.cs22120.group20.selfassessment; import uk.ac.aber.cs22120.group20.json.DictionaryEntry; +import java.util.ArrayList; +import java.util.Arrays; + public class MatchTheMeaningQuestion extends Question { - private DictionaryEntry[] correctAnswer; + private ArrayList correctAnswer = new ArrayList<>(); public MatchTheMeaningQuestion(DictionaryEntry[] correctAnswer){ - this.correctAnswer = correctAnswer; + this.correctAnswer.addAll(Arrays.asList(correctAnswer)); } - public DictionaryEntry[] getCorrectAnswer() { + public ArrayList getCorrectAnswer() { return correctAnswer; } }