Total questions isn't an issue. I already fixed that problem, it's in a different section of the code, so it wasn't part of the printout.
System.out.println("answer:"+answer);
...
Type: Posts; User: Hagstrom505
Total questions isn't an issue. I already fixed that problem, it's in a different section of the code, so it wasn't part of the printout.
System.out.println("answer:"+answer);
...
Ok, I moved them. The answers match up with the solutions, but the score isn't being increased.
Right, ran the System.out.printlns you suggested, and they didn't output anything.
Any further suggestions?
Integer, but my computers teacher says the opposite, if I'm reading you right.
Zero is an okay response value, but this is when I run through the program using the correct answers, so all the if statements are considered true.
Thanks though, will try that.
Sorry about that. I declared it globally up at the beginning of the program.
As for program's output, with several System.out.println statements I omitted from up above, I get the following output:...
I'm working on a school project, which is basically a quiz type program, but I've hit a bit of a snag...
In it, I have a counter for the number of correct answers, but it doesn't store the value...