Search:

Type: Posts; User: help_desk

Search: Search took 0.11 seconds.

  1. Re: while loop loops foreve even with the right inputs.

    Hi, Greg,

    I solved it now. I just had to think about it differently because I didn't understand his approach. Thanks anyways for the response.
  2. Re: while loop loops foreve even with the right inputs.

    Well, here is his code:


    I didn't quite make much sense out of it. I did ask if he could elaborate more on it. I understood his idea that you can't use the !option.equalsIgnore("Y") when it is N...
  3. Re: while loop loops foreve even with the right inputs.

    Yes sir. That is what I am looking for.
  4. Re: while loop loops foreve even with the right inputs.

    Sorry Greg IF I didn't make sense. Here is what I want to make sense of: I want the user to either choose Y or N for the loop to quite. Should the user enter any other character aside these two, the...
  5. Re: while loop loops foreve even with the right inputs.

    Hi PhHein,

    I see the logic in it but how could I write it such that only when the user enter's Y or N will the loop stop because based on whether the user enter's Y or N, the programme goes into...
  6. while loop loops foreve even with the right inputs.

    Could anyone point me to why when the user enters Y or N, this loop still continues looping instead of quitting?

    Thanks


    System.out.println("Enter Y to indicate Up OR...
Results 1 to 6 of 6