Thanks for the tip re Scanner use, and yeah you're right about the value not being updated. I just don't understand why. If Method1 is called, shouldn't the value variable be updated when new input...
Type: Posts; User: amsh
Thanks for the tip re Scanner use, and yeah you're right about the value not being updated. I just don't understand why. If Method1 is called, shouldn't the value variable be updated when new input...
Thanks for the feedback mate.
Yes, I understand that value is a Method2() local variable and the implications re scope. Would that have an effect in this case, as Method1 one doesn't reference it...
Thanks Norm, I'd already done exactly what you proposed but left it out for simplicity's sake. Although you'd expect it to help with my understanding, it did the opposite. I put in four println...
Hi guys, I'm stuck on the following simple problem. Method 1 asks for input. Method 2 gets input and checks it against a criterion - if it fails, we start back at method 1, if it passes, we finish....
Hi guys, I'm brand-new to Java, self-teaching. If one of the wizards could tell me what I'm doing wrong here, or ideally give me a better way to solve this problem, I'd be eternally appreciative....