Palindrome in java

palindrome_usingjavaA word, phrase, number or sequence that reads the same backwards as forwards

String = reverse of a String

e.g MADAM, MOM, 01022010 etc.

Let’s see different ways how we can determine, if a word or string is palindrome or not in Java.

For integer entry:

Output:

Enter a no. to verify palindrome
151
151 is a palindrome number

Content posted is based on learning or working experience, please leave comments if anything needs to be added or updated, discuss your queries on our facebook:qavalidation.com, Thanks!

Leave a Reply

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

%d bloggers like this: