Question: Write a recursive method isReverse that accepts two strings as a parameter and returns true if the two strings contain the same sequence of characters
Write a recursive method isReverse that accepts two strings as a parameter and returns true if the two strings contain the same sequence of characters as each other but in the reverse order. For example, the string "hello" backwards is "olleh", so a call of isReverse("Java", "avaJ") would return true and isReverse( 2. 11 1n "Java, ava) would return false
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
