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

why using interface interface ?

2038


What is the difference between a method and a function in alice?

1186


Why is a singleton bad?

949


Does list allow duplicates in java?

927


What is meant by 'Class access modifiers'?

1042


What is difference between overloading and overriding in java?

1018


What interface is extended by awt event listeners?

1049


Why to use nested classes in java?

1114


Can java program run without jre?

1006


What is java used for on a computer?

985


Write an algorithm for quick sort?

1021


what is abstract class in Java?

1111


How does indexof work?

949


What is the difference between final, finally and finalize() in java?

1141


Is list thread safe in java?

917