I've got to make all possible anagram string combinations with java. Checking whether two strings are anagram or not is not my problem.. But when it comes to generating the whole set of possible anagram string combinations, I can't manage to find out a way.
For example : Input : "Wolf" Output : 1. wolf 2. wofl 3. wlof 4. wflo 5. wlfo 6. wfol 5. owlf 6. olfw . . . And so on.