write program for palindrome
Answer Posted / amrutha
String s1=args[0];
String s2="";
for(int i=0; i<s1.length(); i++)
{
s2=s2+charAt(i);
}
if(s1.equals(s2))
System.out.println("Palindrome");
else
System.out.println("Not Palindrome");
| Is This Answer Correct ? | 168 Yes | 173 No |
Post New Answer View All Answers
How do you import payscale data from non SAP to SAP?is it through LSMW or any other way is there?
What is the difference between #import and #include in c++?
total amount of milk produced each morning and then calculates and outputs the number of cartons needed for this milk , the cost of producing the milk and the profit from producing this milk.
What is data structure in c++?
How to allocate memory dynamically for a reference?
What are manipulators used for?
Explain the purpose of the keyword volatile.
What is difference between class and structure in c++?
Can comments be longer than one line?
What is the use of register keyword with the variables?
Why do we need function?
Define pure virtual function?
What does the following code do: int c=0; cout< a) Undefined *Updated* b) 01 c) 00
How to get the current position of the file pointer?
What is c++ prototype?