if you want to match string agains string you need to use String method
equals() or
equalsIgnoreCase(String anotherString).
Secondly to store score you need only one variable and not four plus you DO NOT need else if part of statement! String is either what is correct answer and score get increased or it is not and score remain as it was...
Moderator
Featured Poster
Reputation Points: 2786
Solved Threads: 874
Code tags enforcer
Offline 6,658 posts
since Dec 2004