У меня есть список в JTable, он отображает набор вопросов. У каждого вопроса есть уровень сложности. Я хочу получить количество простых, медуимов, сложных вопросов в JTable. Как получить атрибут из списка
public void actionPerformed(ActionEvent arg0) {
Test test= new Test();
Integer id=GestionTestDelegate.doGetLastInsertId();
test=GestionTestDelegate.doFindTestById(id);
Integer facile = null;
Question question=new Question();
if(questions2.contains(question.getNiveauDeDifficulte().equals("Facile"))){
facile++;
}
test.setNbrQuestionFacile(facile);
GestionTestDelegate.doUpdateTest(test);
}
Я попробовал этот код, но он не работает.