Java

Java Program to Check Whether a Number is Palindrome or Not



Palindrome in Java: Java program to check if a string is a palindrome or not. A string is a palindrome if it remains unchanged when reversed, for example, “dad” is a palindrome as reverse of “dad” is “dad” whereas “program” isn’t a palindrome as its reverse is “margorp” which is different from “program”.
=====================================================
example:-
505
123454321
======================================================

Similar Posts

Leave a Reply

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