Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What are the restrictions apply to constructors and destructors?

1035


Explain the register storage classes in c++.

1158


Do you know about latest advancements in C++ ?

1171


What is the array and initializing arrays in c++?

989


What is setf in c++?

1052


How would you use qsort() function to sort an array of structures?

1073


Is the declaration of a class its interface or its implementation?

1129


What are stacks?

1016


Define a conversion constructor?

1036


What is the difference between a pointer and a link in c ++?

1011


What are guid? Why does com need guids?

1017


Which programming language should I learn first?

1052


How delete [] is different from delete?

963


Write about a nested class and mention its use?

1059


Is java a c++?

997