please who can help me solving this method...
write the swap method that takes a string S as argument and prints all strings obtained by swapping of the string
for example S="abc" this method should print the following:
bac bca cab acb abc
thanks in advance
This is a standard permutation assignment. Just google permutation, there are plenty of code examples. Of course, if you think about it a bit, and try to write it yourself, you'd be better off in the long run. A tip: recursion is your friend.