Search:

Type: Posts; User: aussiemcgr

Search: Search took 0.07 seconds.

  1. Replies
    18
    Views
    2,125

    [SOLVED] Re: Have a few odd problems.

    But, that is what recursion is...

    There really isn't any point in having that System.out.println in you else statement in your recursive method. There is no real way to track it by doing that...
  2. Replies
    18
    Views
    2,125

    [SOLVED] Re: Have a few odd problems.

    Well, you have two problems. The first is exactly what the compiler told you. You want to return something or there is no way to capture the value. So, you want this:

    else
    { // beginning of else...
  3. Replies
    18
    Views
    2,125

    [SOLVED] Re: Have a few odd problems.

    Ok, quick recursion review.

    Look at my code below of an example of recursion. Review the comments to see if you understand how it works:

    public class TestRead
    {

    public static void...
Results 1 to 3 of 3