src/main/java/MyMain.java
public static boolean isPalindrome(final String str) {
        String yum = str.toLowerCase();
    
        if(str.length()<2)
            return true;
    
        for(int i = 0; i < (str.length()/2) ; i++){
        
        if( yum.charAt(i) != yum.charAt(str.length() - 1 - i) )
            return false;
    }
    
    return true;
    }
// Checks whether str is a palindrome or not
Checks whether str is a palindrome or not
Checks whether str is a palindrome or not
public static boolean isPalindrome(final String str) {
        String yum = str.toLowerCase();
        if(str.length()<2)
            return true;
        for(int i = 0; i < (str.length()/2) ; i++){
        if( yum.charAt(i) != yum.charAt(str.length() - 1 - i) )
            return false;
    }
    return true;
    }
public static boolean isPalindrome ( final String str ) { String yum = str . toLowerCase ( ) ; if ( str . length ( ) < 2 ) return true ; for ( int i = 0 ; i < ( str . length ( ) / 2 ) ; i ++ ) { if ( yum . charAt ( i ) != yum . charAt ( str . length ( ) - 1 - i ) ) return false ; } return true ; }
Checks whether str is a palindrome or not
Checks whether str is a palindrome or not