Search:

Type: Posts; User: javapol

Search: Search took 0.37 seconds.

  1. Re: I'm wanting this code to jump out of the loop at case 2 of the switch statement

    Its already set to true, if either are false, I want it to stop looping.
  2. Re: I'm wanting this code to jump out of the loop at case 2 of the switch statement

    Yeah, but I want OR because i just need either one to be true, || is the correct operator for OR right?
  3. Re: I'm wanting this code to jump out of the loop at case 2 of the switch statement

    I want either of the variables to be true, but for now I just want to get the 'condition' one working. I can't understand why it won't jump out when the condition is false. Here is the full code:

    ...
  4. Re: I'm wanting this code to jump out of the loop at case 2 of the switch statement

    Here's an update of the code:


    switch (guessAgainPrompt)
    {
    case 1:
    guessNumber();
    guessCount=+1;
    if...
  5. I'm wanting this code to jump out of the loop at case 2 of the switch statement

    For some reason it won't jump out of it.


    System.out.println("\nWould you like to try to guess the number again?\n" +
    "1.Yes\n" +
    ...
Results 1 to 5 of 5