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
Is c++ a high level language?
What is an object in c++?
Which sort does c++ use?
What is a constant? Explain with an example.
What is c++ hash?
How is c++ used in the real world?
Explain differences between new() and delete()?
Which programming language is best?
Differentiate between structure and class in c++.
How is data hiding achieved in c++?
What is c++ map?
Why do we use classes in c++?
What is auto used for in c++?
What is the best book for c++ beginners?
What is meant by the term name mangling in c++?