Java Program to Check if number is PALINDROME or Not

In this tutorial we will write a Java program to check if a number is a PALINDROME or not. A palindrome number(or string) is a special number which if written in reverse order also is the same. –

E.g – 121 -> reverse -> 121
1221 -> reverse -> 1221
1123211 -> reverse -> 1123211

We will be using While Loop to reverse the number first and then we simply will use the If-Else statement to check if the original number matches the reversed one.

Java program to Find if a Number is PALINDROME or not –
Watch it on YouTube

Leave a Reply

Your email address will not be published. Required fields are marked *