View Single Post
  #1 (permalink)  
Old 07-31-2007, 07:16 AM
cachi cachi is offline
Member
 
Join Date: Jul 2007
Posts: 40
cachi is on a distinguished road
Help with recursive function in java
Hi, how would i take
Code:
public String reversal(String x){ int y = x.lenght(); String s ="" for(Int j=y-1;j>=0;j--) s+=x.charAt(j); return s; }
and write a recursive function for it to do the same thing?
Thanks
Reply With Quote
Sponsored Links