src/Recursion/recursion3.java
public static boolean isReverse(String str1, String str2, int i) {

		if (str1.length() != str2.length())
			return false;

		if (i == str1.length()) {
			return true;
		}

		if (str1.charAt(i) == str2.charAt(str2.length() - 1 - i))
			return isReverse(str1, str2, i + 1);

		return false;
	}
//	check is string2 is the reverse of string1
check is string2 is the reverse of string1
check is string2 is the reverse of string1
public static boolean isReverse(String str1, String str2, int i) {
		if (str1.length() != str2.length())
			return false;
		if (i == str1.length()) {
			return true;
		}
		if (str1.charAt(i) == str2.charAt(str2.length() - 1 - i))
			return isReverse(str1, str2, i + 1);
		return false;
	}
public static boolean isReverse ( String str1 , String str2 , int i ) { if ( str1 . length ( ) != str2 . length ( ) ) return false ; if ( i == str1 . length ( ) ) { return true ; } if ( str1 . charAt ( i ) == str2 . charAt ( str2 . length ( ) - 1 - i ) ) return isReverse ( str1 , str2 , i + 1 ) ; return false ; }
check is string2 is the reverse of string1
check is string2 is the reverse of string1