src/Recursion/recursion3.java
public static boolean isPalindrome(String str, int i) {
		if (i == (str.length()) / 2) {
			return true;
		}

		if (str.charAt(i) == str.charAt(str.length() - 1 - i)) {
			return isPalindrome(str, i + 1);
		}

		return false;
	}
//	check if a string is palindrome or not
check if a string is palindrome or not
check if a string is palindrome or not
public static boolean isPalindrome(String str, int i) {
		if (i == (str.length()) / 2) {
			return true;
		}
		if (str.charAt(i) == str.charAt(str.length() - 1 - i)) {
			return isPalindrome(str, i + 1);
		}
		return false;
	}
public static boolean isPalindrome ( String str , int i ) { if ( i == ( str . length ( ) ) / 2 ) { return true ; } if ( str . charAt ( i ) == str . charAt ( str . length ( ) - 1 - i ) ) { return isPalindrome ( str , i + 1 ) ; } return false ; }
check if a string is palindrome or not
check if a string is palindrome or not