Search:

Type: Posts; User: Norm

Search: Search took 0.12 seconds.

  1. Replies
    11
    Views
    1,611

    Re: Java User-Input bug (not continuing); NOVICE

    That does not make sense for the value of a String.
    Include the value of direction with the error message so you can see what the computer sees when the if statements are executed.
    Then execute the...
  2. Replies
    11
    Views
    1,611

    Re: Java User-Input bug (not continuing); NOVICE

    Please copy and paste the programs print outs here instead of using images. The images don't show all that was printed.


    What was the value of direction? It looks like 2 dots: ..
    Is that what...
  3. Replies
    11
    Views
    1,611

    Re: Java User-Input bug (not continuing); NOVICE

    What was the value of the variable: direction that was not recognized?
    The error message should print out the invalid value.

    What are the values of x and y while the loop is executing? Because...
  4. Replies
    11
    Views
    1,611

    Re: Java User-Input bug (not continuing); NOVICE

    Same advice as before.
    Also you need to post the new code.
  5. Replies
    11
    Views
    1,611

    Re: Java User-Input bug (not continuing); NOVICE

    Add some println statements to show where the code is executing to find out the last place it executes before it terminates.
Results 1 to 5 of 5