File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Printing all string combinations for given string Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic
Author

Printing all string combinations for given string

nandu kishore
Greenhorn

Joined: Sep 26, 2008
Posts: 2
Hi,

I want to print all string combinations like
for ABC
I have to print like ...
ABC
ACB
BCA
BAC
CAB
CBA
---- total 6 combinations

If it is ABCD -- total 24 combinations

User may enter string length of n chars. It should print all combinatins.

Thanks in advance

Regards,
Kishore
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35230
    
    7
Please do not post the same question to multiple forums: CarefullyChooseOneForum

Let's continue the discussion in this duplicate thread. It has been moved to a more appropriate forum, because it had nothing to do with servlets.


Android appsImageJ pluginsJava web charts
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Printing all string combinations for given string
 
Similar Threads
permutations
printing in table format using logic:iterate and bean:write
All possible combinations of the elements in the string array
Printing all string combinations
Printing out the combinations of a given string