4 Replies
count is a local variable
Ahhhh
So it has to be globalized
if you call numberOfSteps from itself, you get a new stack, a new version of 'count'
or rather pass that in to the method as another param
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.