Search:

Type: Posts; User: Hagstrom505

Search: Search took 0.11 seconds.

  1. Re: Help! Variable potentially getting Overwritten!

    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);
    ...
  2. Re: Help! Variable potentially getting Overwritten!

    Ok, I moved them. The answers match up with the solutions, but the score isn't being increased.
  3. Re: Help! Variable potentially getting Overwritten!

    Right, ran the System.out.printlns you suggested, and they didn't output anything.

    Any further suggestions?
  4. Re: Help! Variable potentially getting Overwritten!

    Integer, but my computers teacher says the opposite, if I'm reading you right.
  5. Re: Help! Variable potentially getting Overwritten!

    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.
  6. Re: Help! Variable potentially getting Overwritten!

    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:...
  7. Help! Variable potentially getting Overwritten!

    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...
Results 1 to 7 of 7