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 is & in c++ function?

1067


What are the storage qualifiers?

1164


What do you mean by persistent and non persistent objects?

1437


What is a lambda function c++?

1120


Define copy constructor.

1119


What are features of c++?

1187


Are strings immutable in c++?

1162


What are the differences between new and malloc?

1136


What is the type of 'this' pointer?

1022


Can a Structure contain a Pointer to itself?

1144


Is it legal in c++ to overload operator++ so that it decrements a value in your class?

1067


What are manipulators used for?

1101


What are the differences between the function prototype and the function defi-nition?

1105


Describe the setting up of my member functions to avoid overriding by the derived class?

1139


Write a program to add three numbers in C++ utilizing classes.

1119