Tag Archives: recursion

Print string permutations with Java.

I wrote this just to exercise my old java skills. If you find a use for it, let me know what you did with it! import java.util.*;   public class Permute { LinkedList<String> orig;   public Permute(LinkedList<String> _orig) { orig = _orig; }   public LinkedList<String> BuildPerms(LinkedList<String> thisOrig) { Iterator<String> itr = thisOrig.iterator(); LinkedList<String> thisSol [...]
Posted in Programming | Also tagged , | Leave a comment