Answer:
Explanation:
public static boolean isReverse(String a, String b) {
if (a.length() == 0 && b.length() == 0) {
return true;
} else if (a.length() == b.length()) {
int length = b.length();
char letter1 = Character.toUpperCase(a.charAt(0));
char letter2 = Character.toUpperCase(b.charAt(length - 1));
if (letter1 == letter2) {
return isReverse(a.substring(1), b.substring(0, length - 1));
} else {
return false;
}
}
return false;
}