public class Reverse { public String reverseWord(String word) { if (word.length() <= 1) return word; else { return reverseWord(word.subString(1, word.length()-1)); word.charAt(0);; } } }