Search:

Type: Posts; User: Norm

Search: Search took 0.09 seconds.

  1. Thread: Odd/Even

    by Norm
    Replies
    16
    Views
    3,299

    Re: Odd/Even

    @pratul
    When you post code solving a students problem, can you add comments to it explaining how it works and why.

    Also please put your code in code tags. Info here: Java Forums - BB Code List
  2. Thread: Odd/Even

    by Norm
    Replies
    16
    Views
    3,299

    Re: Odd/Even

    I can replace the InputHelper without no problem.
    But I can't help you with your code without seeing your code.

    Why does the program end after the user enters the 5?
    What code is supposed to...
  3. Thread: Odd/Even

    by Norm
    Replies
    16
    Views
    3,299

    Re: Odd/Even

    Can you post what is printed on the console when you execute the program?
    Add some comments to that output showing where you want the program to work differently.

    Also post the full code that you...
  4. Thread: Odd/Even

    by Norm
    Replies
    16
    Views
    3,299

    Re: Odd/Even

    I assume that the value of the askUser variable is false when the user enters: "no".
    What does your code do when the value of askUser is false?
    You didn't post the rest of the code in while loop....
  5. Thread: Odd/Even

    by Norm
    Replies
    16
    Views
    3,299

    Re: Odd/Even

    Use a loop that does not exit until the user says OK by entering the special value.

    What does your code currently do? I see a while loop that tests for the ending value. Does that work as you...
Results 1 to 5 of 5