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
Explain the term virtual machine?
What are alternatives to java serialization?
How many types of assembly languages are there?
Can we create an object of private class?
What are the important features of Java 11 release?
Why should I use abstract class?
What package is math in java?
What is difference between static class and normal class?
Is java good for beginners?
Can you explain the cs option of java interpreter?
What is stringwriter?
Why webdriver is an interface?
What is downcasting?
what is the role of xml in core java?? and how we can use it?? can somebody give a sample program with explanation and from where i can read more about xml?????
What is boolean data type in java?