Write a Java program to check whether the given number is Palindrome or not.

A Palindrome number is a number which is equal to its reverse.

Example: 11, 121, 77, 2442 etc.

palindrome number

Steps to check Palindrome number in Java

  1. Take a number as input (num).
  2. Reverse the number using while loop (rev).
  3. if num == rev then Palindrome else not.

Check Whether a Number is a Palindrome Number in Java

Output

Find all Palindrome Numbers in the Interval in Java

Output

If you have any doubts then comment below.

Leave a Reply

Close Menu