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
public String reverseString (String s) { if (s != null && s.length () > 0 ) { rev = rev + s.substring (s.length () - 1); reverseString (s.substring (0, s.length () - 1)); } return rev; }