I have been messing around with recursion today. Often a programming technique that is not used enough.
I set out to recursively reverse a string. Here\'s what I cam
here is my recursive reverse function that is working fine
public static String rev(String instr){ if(instr.length()<=1){ return instr; } else { return (instr.charAt(instr.length()-1)+rev(instr.substring(0,instr.length()-1)) ); } }