hi everyone. I need some help. Im pretty new to programming and i need some advice on how to do something. My program is about recursion, taking a string(word) and permuting it in all the possible ways like in "jumble" in newspapers. Can someone show me the way to use PrintWriter function to store permutation everytime? Can someone start me off like this:
public void perm(String s, PrintWriter fileOut)
for example, the word cat will have the permutations:
cat, cta, act, atc, tca, tac and I need to store this in a file, preferrably in Microsot Word so that the wrong words will be underlined in red, thus leaving me with the answer to the jumbled word. I greatly appreciate the help. P.S. This is my first post on this forum. I am glad I found somewhere I can go to for some help.