package dhbw.verteiltesysteme.quizduell.server.model;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class AnswerSet {
    private int id;
    private List<Answer> answers = new ArrayList<>(3);

    public boolean isComplete() {
        return this.answers.size() == 3;
    }

    public void add(Answer answer) {
        if (!this.isComplete()) {
            answers.add(answer);
        }
    }

    public List<Answer> getAnswers() {
        return new ArrayList<>(this.answers);
    }
}

@@ -231,16 +231,93 @@
 %3C%3E(3);%0A%0A
+    public int getAnswerCount() %7B%0A        return this.answers.size();%0A    %7D%0A%0A
     publ
@@ -362,28 +362,30 @@
 rn this.
-a
+getA
 nswer
-s.size
+Count
 () == 3;

Add answer count getter