Sorry forgot to mention that we're restricted

with what we can use, so in that case only charAt(),substring(int),and length() are available.

Basically I need to understand how recursion works.

If you know any good examples online as I didn't find many.

I know the basic ones but in more complicated cases it doesn't help.

Good examples could be things like:

Finding the highest number in an array recursively

or the biggest difference between numbers

things like that if you know would be great..

Thanks. :)

That's what I've been looking for!

Amazing replies ,above my expectations. I went through with a debugger and really saw what's going on and tried it myself on my method. I'm not through yet still need to figure out the ending but major improvement and getting there.

Thanks.:)

can't believe it but I got it!!

I managed somehow to write a method that finds the point which the array reaches the half of the total array sum. Probably it interest only me..

Anyway you helped me figuring this out, what a relief.

Thanks.