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 a static member function access member variable of an object?
What is object-oriented paradigm?
Can we use both this () and super () in a constructor?
What is the main purpose of serialization in java?
Can we serialize singleton class?
What is finally and finalize in java?
What is nested interface?
What is the purpose of the file class in java programming?
Name few java 8 annotations ?
what is synchronization? : Java thread
Tell us something about different types of casting?
What is an object in java?
What is the super void?
Give me some null interfaces in java?
what is object slice?