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...

I need help please send me reply:
Write a program "if given a string like 'HAT', the
combination's returned should be like ATH,THA,TAH in java"?

Answer Posted / sudhir

it is same as pallindrome ;
take 2 string or character and and exchange the first and
last location at every loop condition.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the differences between c++ and java?

1114


What is the difference between assignment and initialization?

1031


Explain how hashmap works?

1048


What is a function in java?

1000


Can we inherit inner class?

991


Why string is immutable or final in java

1065


What is main string [] args?

972


How do you write methodology?

964


What is variable and example?

945


What is return data type?

986


Why do we declare a class static?

1122


What does localhost mean?

924


How to sort list of list in java?

1073


Is set thread safe java?

899


How can we run a java program without making any object?

1028