Search unanswered questions...
Enter a question here...
All Community Q&A Reference topics

How to write a computer program so that any string that you will enter the computer will decide whether it is a palindrome or not?

[Edit]

Answer

A palindrome is a word (or phrase that reads forwards and backwards the same.

So:

Get the first string - PhraseString
Go through and remove all spaces, just have the letters
Copy this to another string - TestString

TestString will be the same as PhraseString

Reverse the order of the characters in TestString

If TestString is still the same as PhraseString, it's a palindrome!

Improve Answer Discuss the question "How to write a computer program so that any string that you will enter the computer will decide whether it is a palindrome or not?" Click here to register and get updates when this answer is edited.

First answer by Fizzy Wilber. Last edit by Fizzy Wilber. Contributor trust: 65 [recommend contributor]. Question popularity: 16 [recommend question]

Answers.com > Wiki Answers > Categories > Technology > Computers > Computer Programming > JAVA > How to write a computer program so that any string that you will enter the computer will decide whether it is a palindrome or not?

Our contributors said this page should be displayed for the questions below. (Where do these come from)
If any of these are not a genuine rephrasing of the question, please help out and edit these alternates.
Palindrome program in c?  Palindrome program for c?  Program to check palindrome?  Assembly program for palindrome?  How do you enter other's computer?  Program code for palindrome number?  Program logic for palindrome number?  Where do you enter computer program?  To find if a string is a palindrome?  Write a program for Palindrome check?  How do you write backwards on computer?  Write a program in c to enter password?  Java program code for palindrome string?  Difference computer and computer program?  How do you write a computer based program?  Program to write palindrome of a given no?  How do you write a computer program for c?  Write a program of palindrome in C compiler?  Algorithm to check if a string is a palindrome?  Write c programs for String Reversal Palindrome c?