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
Reverse String using the recursive method call.
Sample Code
public static String reverseString(String s) { if (s.length() == 0) { return s; } else { return s.charAt(s.length() - 1) + reverseString(s.substring(0, s.length() - 1)); } }