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 the code for Palindrome ?

Answer Posted / aslam

public boolean isPaliandrome(String txtToCheck){

StringBuffer strb1 = new StringBuffer(txtToCheck).reverse();
if(txtToCheck.equals(strb1.toString()))
return true;
return false;

}

Is This Answer Correct ?    5 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does java isempty check for null?

943


Should a main method be compulsorily declared in all java classes?

996


Which list does not allow duplicates in java?

873


When does an object becomes eligible for garbage collection in java?

1004


Which collection is ordered in java?

929


How hashset works internally in java?

1013


Is boolean a data type in java?

900


Give some features of interface?

1017


How do you sort a list in java?

975


What are three advantages of using functions?

955


What is singleton class example?

970


How to display names of all components in a Container?

2889


What is the largest long allowed by java?

1005


What is the base class for error and exception?

947


How do you square a number in java?

1001