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

Is c++ a high level language?

1051


What is an object in c++?

1351


Which sort does c++ use?

1080


What is a constant? Explain with an example.

1080


What is c++ hash?

1156


How is c++ used in the real world?

1090


Explain differences between new() and delete()?

1150


Which programming language is best?

1038


Differentiate between structure and class in c++.

1139


How is data hiding achieved in c++?

1142


What is c++ map?

1248


Why do we use classes in c++?

1114


What is auto used for in c++?

1109


What is the best book for c++ beginners?

1097


What is meant by the term name mangling in c++?

1002