Use an if statement
can you explain the steps the code should take to "do that"?
I'm not sure what you mean.
Type: Posts; User: Norm
Use an if statement
can you explain the steps the code should take to "do that"?
I'm not sure what you mean.
Calling the System class's exit()method will end the program.
Compare the user's String input using one of the String class's methods. If there is a match, call the exit() method.
Use a variable to count the correct answers. When the count gets to 10 'end the run'.
Can you explain what 'end the run' means?
Please Edit your post and wrap your code with
<YOUR CODE...