Menu
Question Index
...

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;
    }

}

Doubts

Problems

Topic: Java StringBuffer, reverse() - Reverse A String In Java

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App