reverse code
public text v1 · immutablepublic 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);;
}
}
}