Yeah, i understood clearly now. Thanks a lot. But my problem now is in this part of code:
Because when i place it right after the for loop its not opening the textfiles as i click for example on the platetectonics quiz. So i think that its breaking immediately, before opening the questions, and when i place that part of code after the other "if part" like the code below, its only opening one question and displays the results, where as its supposed to display the 10 questions one after the other until time is over. I think this is happening because of the for loop.
for(int j = 0; j < questions.length; j++) {
String input = JOptionPane.showInputDialog(null, questions[j]);
if(answers[j].equals(input))
{
count++;
point++;
}
if(!timeForMore)
break;
Thanks again for your time in helping me, i really owe you a lot!
