Its already set to true, if either are false, I want it to stop looping.
Type: Posts; User: javapol
Its already set to true, if either are false, I want it to stop looping.
Yeah, but I want OR because i just need either one to be true, || is the correct operator for OR right?
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:
...
Here's an update of the code:
switch (guessAgainPrompt)
{
case 1:
guessNumber();
guessCount=+1;
if...
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" +
...