@@ -0,0 +1,888 @@
+/**%0A * PROBLEM%0A * Implement a function that prints all possible combinations of the characters in a string. These combinations range%0A * in length from one to the length of the string. Two combinations that differ only in ordering of their characters%0A * are the same combination.%0A */%0Apublic class Combinations %7B%0A    private StringBuilder out = new StringBuilder();%0A    private final String in;%0A%0A    public Combinations(final String str) %7B%0A        in = str;%0A    %7D%0A%0A    public void combine() %7B%0A        combine(0);%0A    %7D%0A%0A    private void combine (int start) %7B%0A        for (int i=start; i%3C in.length()-1; ++i) %7B%0A            out.append(in.charAt(i));%0A            System.out.println(out);%0A            combine(i+1);%0A            out.setLength(out.length()-1);%0A        %7D%0A        out.append(in.charAt(in.length()-1));%0A        System.out.println(out);%0A        out.setLength(out.length()-1);%0A    %7D%0A%7D%0A

Create Combinations.java