Write the code for Palindrome ?
Answer Posted / aslam
public boolean isPaliandrome(String txtToCheck){
StringBuffer strb1 = new StringBuffer(txtToCheck).reverse();
if(txtToCheck.equals(strb1.toString()))
return true;
return false;
}
| Is This Answer Correct ? | 5 Yes | 4 No |
Post New Answer View All Answers
What is a loop java?
Which is better stringbuffer or stringbuilder?
What are loops in java? What are three types of loops?
What is a return in java?
What type of variable is gender?
EDS (Electronic Data Systems India Pvt Ltd) at Chennai on 16-12-2006.
What are different types of references?
How to disable caching on back button of the browser?
What do you understand by classes in java?
Can a class extend more than one class?
Can we convert integer to string in java?
Is final static java?
What is getclass () getname () in java?
What is a conditional statement explain with example?
Does java vector allow null?