My
Applet has 2 problems. Both are in the displayQuiz method.
1) This line doesnt seem to work(81).
answers = (
String[])theAnswers.elementAt(i);
The array answers doesnt seem to get reassigned. Are Arrays immutable?
2) A NullPointerException is thrown from this line(104).
if(((cbg.getSelectedCheckbox()).getLabel()).equals(correctAnswer)) {
here is the code:
</BLOCKQUOTE>
[This message has been edited by Randall Twede (edited February 07, 2001).]