Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void checkAndRecordAnswer(String[] capitalsArray,
- String answer, int randomIndex,
- int correctAnswers) throws IOException
- {
- for (int loopCount = 1; loopCount <= 50; loopCount++)
- if (capitalsArray[loopCount].equals(answer) && loopCount == randomIndex)
- {
- System.out.println(answer + " is correct.");
- correctAnswers++;
- }
- else
- System.out.println(answer + " is not correct.");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement