summaryrefslogtreecommitdiff
path: root/src/main/java/kahootgui/Questions.java
blob: 44bbe34ab4ce6b8f9028f961a5dc71b06530c020 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package kahootgui;

public class Questions {

    private String question;
    private String[] answers;

    public Questions(String question, String[] answers) {
        this.question = question;
        this.answers = answers;
    }

    public String correctAnswer() {
        return this.answers[answers.length - 1];
    }

    public String getQuestion() {
        return question;
    }

    public String[] getAnswers() {
        return answers;
    }

}