Search:

Type: Posts; User: kunimaro15689

Search: Search took 0.22 seconds.

  1. Replies
    3
    Views
    50

    [SOLVED] Re: An extra plate of Java Syntax

    Thanks, guys!
  2. [SOLVED] Re: How to make a program run multiple times.

    Thanks for your help xPhish! It helped a lot! :D
  3. Re: Switch statements to initialize variable due to multiple outcomes?

    Thanks, Greg. I have defaulted the answer to 0 and that is always the result when I run the game. This leads me to believe that my second switch statement is a bit wrong. In the first I use random...
  4. Re: Switch statements to initialize variable due to multiple outcomes?

    The threads you merged were the only two.
  5. Using variables initialized in a switch statement.

    I am making a math game that asks the user elementary questions.I have no errors. The answer variable was to be initialized in my second switch statement with the value 0 being default for the...
  6. Switch statements to initialize variable due to multiple outcomes?

    I made a math game with the variable "answer" being the actual answer. But the actual answer is dependent upon the math question. Can I use a switch statement to initialize the variable and map it to...
  7. Re: Initializing answer variable.

    Well if it is trouble to you,do not respond. It will only cause more trouble for you.
  8. Initializing answer variable.

    After this problem is fixed, my math game will run. The answer variable is supposed to be equal to the cases in the second switch statement by random but I get errors whenever I try to initialize it...
  9. Re: Using variables in switch statement case clauses

    That is fine. I had an if else block before and it worked. I am just practicing and seeing what I can and cannot do. My primary concern is generating random math operators to appear in the question.
  10. Using variables in switch statement case clauses

    I am stuck with two switch statements that I feel I am close to achieving. My first switch statement is to generate random mathematical operators for the math questions in the game (generated...
  11. [SOLVED] Re: How to make a program run multiple times.

    Thanks. I fixed my code in a new thread where I was more specific. Using this method I would have to use everything as an integer for the loop to work? I cant make the entire question an integer so I...
  12. [SOLVED] Random math operators and asking ten questions with a loop?

    So my little math game is working so far. I can only do addition though. I know how to fix it if I can find out how to generate random math operators. After that I want to use a loop (or a better...
  13. [SOLVED] How to make a program run multiple times.

    I have made a basic math game that asks you questions and tells you if you have answered them correctly or incorrectly. The game runs great! The thing is that it asks you a question one time and...
  14. [SOLVED] Re: Scanner cannot be used as variable in "if" Statements???

    Thank you, Greg. It worked!
  15. [SOLVED] Re: Scanner cannot be used as variable in "if" Statements???

    Sorry for the mistake, greg. The problem is the scanner and double being incomparable...
  16. [SOLVED] Scanner cannot be used as variable in "if" Statements???

    I created a variable for the scanner called serena. Serena variable is equal to what the user inputs. My if statement says that if the answer the user enters is not equal to the actual answer then it...
  17. Replies
    3
    Views
    50

    [SOLVED] An extra plate of Java Syntax

    My name is Chevron.

    I want to learn as much syntax as possible before I leap into my mighty Java expedition is search of the gifts of the almighty Java gods

    What is a good site or book to learn...
  18. Replies
    1
    Views
    46

    Java covered apples.

    My name is Chevron. I like Java and I like apples.

    I know little about both.

    They are like distant friends.... With trust issues who smoke cigarettes to make themselves feel cool.

    >>
Results 1 to 18 of 18