View Single Post
  #2 (permalink)  
Old 01-24-2008, 05:56 AM
gibsonrocker800's Avatar
gibsonrocker800 gibsonrocker800 is offline
Senior Member
 
Join Date: Nov 2007
Location: New York
Posts: 143
gibsonrocker800 is on a distinguished road
Send a message via AIM to gibsonrocker800
Two things i noticed (i didn't read any of your other code, just the for loop).

Code:
if(answers[randomIndex].equalsIgnoreCase(input)) count++; // incrementing counter if entered answer is correct point++;
point++ is never happening because you didnt put brackets for the if statement

Code:
if(!timeForMore) break;
Since you made it so that the loop says:
Code:
timeForMore = true;
The break statement will never be executed because the boolean timeForMore is always true in the iteration.

This might not have solved your problem, but this may lead to the lack of logic errors later. =]
__________________
//Haha javac, can't see me now, can ya?
Reply With Quote