Possible Duplicate:
Check string for palindrome
Hello experts. I am asked, if it is possible to find whether a string is palidrome of another string in just one line of code in C++/Java.
If yes, then how?
Can any one answer. Thnx for ur view.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In Java,
Stringdoes not have areversemethod.StringBuilderhas though, so you can still do it in one line:Ideone.com demo