@@ -0,0 +1,751 @@
+public class Permutation %7B%0A%0A%09private static void combo(String s, int m) %7B%0A%09%09combo(s, %22%22, 0, s.length() - m);%0A%09%7D%0A%0A%09private static void combo(String s, String prefix, int m, int n) %7B%0A%09%09if (n == s.length())%0A%09%09%09System.out.println(prefix);%0A%09%09else%0A%09%09%09for (int i = m; i %3C= n; i++)%0A%09%09%09%09combo(s, prefix + s.charAt(i), i + 1, n + 1);%0A%09%7D%0A%0A%09private static void permute(String s) %7B%0A%09%09permute(%22%22, s);%0A%09%7D%0A%0A%09private static void permute(String prefix, String suffix) %7B%0A%09%09if (suffix.length() == 0)%0A%09%09%09System.out.println(prefix);%0A%09%09else%0A%09%09%09for (int i = 0; i %3C suffix.length(); i++)%0A%09%09%09%09permute(prefix + suffix.charAt(i), suffix.substring(0, i)%0A%09%09%09%09%09%09+ suffix.substring(i + 1));%0A%09%7D%0A%0A%09public static void main(String%5B%5D args) %7B%0A%09%09permute(%22ABCD%22);%0A%09%09combo(%22ABCDE%22, 3);%0A%09%7D%0A%0A%7D%0A

Create Permutation.java