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 generic type?
What are the differences between throw and throws?
What is finally and finalize in java?
How does linkedlist work in java?
What are the various access specifiers in java?
What is difference between public static and void?
What are the access modifiers available in java?
What is the access scope of a protected method?
What is the do while loop syntax?
Write code of any action class?
What is the parse method in java?
How many bytes is a char in java?
How transient variable is different from volatile variable?
Is alive in java?
Explain access specifiers?