Search:

Type: Posts; User: copeg

Search: Search took 0.07 seconds.

  1. Replies
    9
    Views
    1,731

    Re: Can Define what is this error

    With an invalid entry, this function call will not return (eg it'll keep running through your loop regardless of what you enter


    Kind of...for an invalid entry, you call setOrder which indirectly...
  2. Replies
    9
    Views
    1,731

    Re: Can Define what is this error

    I think I see what your question is...

    It does change, but the way your program runs the output makes it look different. How about drawing out the program stack trace as it runs. This is sketched...
  3. Replies
    9
    Views
    1,731

    Re: Can Define what is this error

    If you are referring to the line:


    System.out.println(numberOfOrders);// why is the value of this PARAMETER stuck in the first value that had been passed to it? (why does it never change?)

    ...
  4. Replies
    9
    Views
    1,731

    Re: Can Define what is this error

    You seem to be getting variable clashes...notice that the parameter name of setOrder is the same as the instance variable 'numberOfOrders'. This can cause conflicts between the two, and your do/while...
Results 1 to 4 of 4