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
What are the restrictions apply to constructors and destructors?
Explain the register storage classes in c++.
Do you know about latest advancements in C++ ?
What is the array and initializing arrays in c++?
What is setf in c++?
How would you use qsort() function to sort an array of structures?
Is the declaration of a class its interface or its implementation?
What are stacks?
Define a conversion constructor?
What is the difference between a pointer and a link in c ++?
What are guid? Why does com need guids?
Which programming language should I learn first?
How delete [] is different from delete?
Write about a nested class and mention its use?
Is java a c++?