Menu
Question Index
...

Write a program to find if the given number is palindrome. A palindrome number which when reversed will be the same as original.

Input (Integer) Output (Boolean)
121 true
123 false
7887 true
90009 true
90010 false



class PalindromeNumber
{
    public static void main(String s[])
    {
        boolean palindrome = isPalindrome(1221);
        
        if(palindrome)
            System.out.println("1221 is a palindrome.");
        else
            System.out.println("1221 is not a palindrome.");

    }


    public static boolean isPalindrome(int number)
    {
        boolean result = false;
        return result;
    }

}

Doubts

Problems

Topic: while Loop 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