Java programming question
mwabonje1

The following code should count the number of correct responses and give me the count at the end. when there is invalid input it should loop the question until valid input is keyed whether right or wrong. However, it is not able to recognize valid wrong answers from invalid answers

You are viewing a single comment. View All
mwabonje1

import javax.swing.JOptionPane;
public class Test {

}

i have done the above code but it is not working as per my expectation. I wanted it to record right answers and show me the number of questions i got. Also it should tell me to input a valid answer if one has entered a choice that isn't available.