Try moving the declarations for the variables that hold the score out of the method and declare them at the class level. Then their values will be preserved between calls to methods.
Here is an...
Type: Posts; User: Norm
Try moving the declarations for the variables that hold the score out of the method and declare them at the class level. Then their values will be preserved between calls to methods.
Here is an...
For variables to hold values between method calls, they must be declared at the class level. I do not see any class level variables in the code.
variables that are locally defined inside of a...
How are you trying to debug the code to see what it is doing? Using JOptionPane makes it hard for you to copy the console window's contents and paste it here to show what you are talking about. ...