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

How do you import payscale data from non SAP to SAP?is it through LSMW or any other way is there?

3647


What is the difference between #import and #include in c++?

1106


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.

2576


What is data structure in c++?

1142


How to allocate memory dynamically for a reference?

1041


What are manipulators used for?

1091


Explain the purpose of the keyword volatile.

1167


What is difference between class and structure in c++?

1192


Can comments be longer than one line?

1071


What is the use of register keyword with the variables?

939


Why do we need function?

1049


Define pure virtual function?

980


What does the following code do: int c=0; cout< a) Undefined *Updated* b) 01 c) 00

1067


How to get the current position of the file pointer?

1035


What is c++ prototype?

1198