Search:

Type: Posts; User: amsh

Search: Search took 0.25 seconds.

  1. Replies
    7
    Views
    221

    Re: Simple question re while loop and input

    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...
  2. Replies
    7
    Views
    221

    Re: Simple question re while loop and 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...
  3. Replies
    7
    Views
    221

    Re: Simple question re while loop and input

    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...
  4. Replies
    7
    Views
    221

    Simple question re while loop and input

    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....
  5. Very basic coding question, I'd appreciate feedback.

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