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
Can we able to pass objects as an arguments in java?
What is a variable and constant?
Is array serializable java?
Difference between ‘is-a’ and ‘has-a’ relationship in java?
What does %4d mean in java?
According to java operator precedence, which operator is considered to be with highest precedence?
What is parsing a sentence?
Why java is platform independent? Explain.
Can I uninstall java?
What is a line separator in java?
What is volatile keyword in java
Can a constructor be private and how are this() and super() method used with constructor?
What is double word?
What do you understand by the term singleton?
How can you say java is object oriented?