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
Where are the local variables stored?
What is append function?
How do you change an int to a string?
What are class members by default?
What is an exception in java?
What is the declaration statement?
What are the practical benefits, if any, of importing a specific class rather than an entire package (e.g. Import java.net.* Versus import java.net.socket)?
Explain the difference between a Thread and a Process.
Why do we need singleton?
What does this () mean in java?
What Is Composition?
What is the purpose of the System class?
What is Recursion Function?
What is floating data type?
What is regex java?