Question: Write a recursive method called isReverse that accepts two strings as parameters and returns true if the two strings contain the same sequence of characters
Write a recursive method called isReverse that accepts two strings as parameters and returns true if the two strings contain the same sequence of characters as each other but in the opposite order (ignoring capitalization), and false otherwise. For example, the call of isReverse( "hello ", "eLLoH ") would return true. The empty string, as well as any one-letter string, is considered to be its own reverse.
Step by Step Solution
3.48 Rating (171 Votes )
There are 3 Steps involved in it
public static boolean isReverse String sl String 82 if s1length 0 s2length 0 return true else if s1l... View full answer
Get step-by-step solutions from verified subject matter experts
