Search:

Type: Posts; User: helloworld922

Search: Search took 0.18 seconds.

  1. Replies
    4
    Views
    2,241

    Re: Recursion help

    Remember, you have to do it in reverse:

    public static void Long(long n)
    {
    if (n / 10 != 0)
    {
    reverse(n/10);
    }
    System.out.println(n%10);
    }
  2. Replies
    4
    Views
    2,241

    Re: Recursion help

    Here's some tips that hopefully should help you figure it out:

    Recursion is just breaking up a big problem into smaller pieces. What pieces can you break the problem up into (hint, see copeg's...
Results 1 to 2 of 2