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

1 Expert Approved Answer
Step: 1 Unlock

public static boolean isReverse String sl String 82 if s1length 0 s2length 0 return true else if s1l... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Building Java Programs A Back to Basics Approach Questions!