/** * Checks two QuizQuestion objects for equality. * * @param questionIn QuizQuestion object to be tested against * @return boolean for equality */ public boolean equals(QuizQuestion questionIn) { return this.getQuestionText().equals(questionIn.getQuestionText()) && this.getQuestionIndex().equals(questionIn.getQuestionIndex()); }