Professional Documents
Culture Documents
Quiz
Quiz
JOptionPane;
while(true) {
answer = answer.toUpperCase();
return answer.toUpperCase();
if (answer.equals(correctAnswer)){
nCorrect++;
}else {JOptionPane.showMessageDialog(null," Incorrect " + "- The correct answer is: " + correctAnswer);}
nQuestions++;
check(question,"A");
check(question,"B");
check(question,"A");