代码 import java.util.ArrayList; import java.util.HashSet; import java.util.Iterator; public class Solution { public ArrayList<String> Permutation(String str){ if (str==null||str.length()==0){ return new ArrayList<>(); }else { HashSet<String&...