Search:

Type: Posts; User: garymar2013

Search: Search took 0.09 seconds.

  1. Replies
    6
    Views
    5,727

    Re: Recursive Method to count vowel

    Return a value or not does not matter for a recursive function indeed. The core part is to terminate it. So I agree with you that something is wrong with the termination condition. So in my...
  2. Replies
    6
    Views
    5,727

    Re: Recursive Method to count vowel

    The problem lies in the recursive function, which must return something to get the previous level where it was invoked. Pleaes try the following:
    public class RecursiveFunctionTest {

    private...
Results 1 to 2 of 2