- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Java program to print whether the given string is a palindrome
A given string is called a palindrome if the reverse of the string is the string itself. For example, the strings “mom”, “bob”.
Algorithm
1. Get the number to check for palindrome 2. Hold the number in a temporary variable 3. Reverse the number 4. Compare the temporary number with the reversed number 5. If both numbers are same, print "palindrome number" 6. Else print "not palindrome number"
Program
But if we want to check if "Madam" is palindrome or not , it will show us that it is not a palindrome because of the upper case of first letter.
- Related Articles
- Haskell Program To Check Whether The Input String Is A Palindrome
- Java Program to Check Whether the Given String is Pangram
- Python program to check whether the string is Symmetrical or Palindrome
- Write an example to find whether a given string is palindrome using recursion
- C Program to Check if a Given String is a Palindrome?
- Java program to check whether a given string is Heterogram or not
- Java program to find whether the given string is empty or null
- Python program to check if a given string is number Palindrome
- Python program to check if the given string is vowel Palindrome
- Python Program to Check Whether a String is a Palindrome or not Using Recursion
- Write a Golang program to check whether a given number is a palindrome or not
- Java Program to Print a String
- TCP Client-Server Program to Check if a Given String is a Palindrome
- 8085 program to check whether the given 16 bit number is palindrome or not
- Java program to check string as palindrome

Advertisements