Please help me to create a Java program to print all the anagrams of a entered string?? | Sololearn: Learn to code for FREE!

0

Please help me to create a Java program to print all the anagrams of a entered string??

plz keep the program simple.

1/4/2017 12:59:05 PM

Akash Karnatak

4 Answers

New Answer

0

0

Use recursion. Try each of the letters in turn as the first letter and then find all the permutations of the remaining letters using a recursive call. https://code.sololearn.com/c7w6vcdo50R8/#java

0

thnx akash but is their any way out without recursion

0

Yes, there is but it will be longer and not so simple like you asked!. https://code.sololearn.com/cH5e5zj8DKMF/#java