Search:

Type: Posts; User: helloworld922

Search: Search took 0.09 seconds.

  1. Replies
    6
    Views
    1,779

    Re: Parameter's value is never changing

    Yes, you're SetOrder is calling reOrder, but reOrder is calling SetOrder, so your call stack looks like this (choosing order size 10, then second order size 20)

    1. setOrder (version a)
    2. reOrder...
  2. Replies
    6
    Views
    1,779

    Re: Parameter's value is never changing

    No where in your code is it changing numberOfOrders. Also, your method is using a field variable to operate in a recursive function. I would recommend passing the value to the recursive method...
Results 1 to 2 of 2