Search:

Type: Posts; User: maple1100

Search: Search took 0.10 seconds.

  1. Replies
    6
    Views
    1,301

    [SOLVED] Re: Java recursion

    I understand how the program work now with your explanation of what happen when a method call itself. Thanks you so much!
  2. Replies
    6
    Views
    1,301

    [SOLVED] Re: Java recursion

    I understand it when it it is replacing the value but what I don't understand is how the program take -5 + 8 without me adding the statement. Does the recursion record the value +2 each time it occur...
  3. Replies
    6
    Views
    1,301

    [SOLVED] Re: Java recursion

    How can I make the computer display what it the value it seeing? I believe the computer are seeing value of x which are 17, 14,11, and 8.
  4. Replies
    6
    Views
    1,301

    [SOLVED] Java recursion

    Could someone help me understand this code? Thanks
    So the program will print out

    "Example 1: x = 20
    20 > 10, therefore ... f(20) = f(20 - 3) + 2 = f(17) + 2
    17 > 10, therefore ... f(17) =...
Results 1 to 4 of 4