Find if the given string is palindrome or not - Java Quiz Question


Write a program to check the if the given string is a palindrome.

Input (String) Output (Boolean)
malayalam true
eye true
madam true
apple false
team false
"" {EMPTY STRING} false
null false



class FindPalindrome
{
    public static void main(String s[])
    {
        String input = "malayalam";
        boolean result = isPalindrome(input);
        
        System.out.println("Is " + input + " palindrome : " + result);

    }


    public static boolean isPalindrome(String input)
    {
        boolean result = false;
        return result;
    }

}