0
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);
}
このコードを試しましたが、機能しませんでした。