static HashSet permutations(String t) { //Instanciation des variables String racine; HashSet ch = new HashSet(); String h; HashSet result = new HashSet(); //LinkedList ret = new LinkedList(); int i, a; //Si le mot est composé d'un seul caractère if (t.length() == 1) { result.add(t); return result; } else { //On boucle sur toute les lettres for (i = 0; i < t.length(); i++) { //on récupére la lettre courante racine = t.substring(i, i+1); //if (ret.indexOf(racine) < 0) { //ret.add(racine); h=t; for(int j=0;j