public void addAnswer ( int questionId , int answerId ) { QuestionAnswerPair answerPair = new QuestionAnswerPair ( questionId , answerId ) ; answers . add ( answerPair ) ; }
Adds an answer to a question to the AnswerSet .