public class Permute {
public static void main(String[] args) throws IOException {
System.out.println(\"Enter a string\");
BufferedReader bufReader =
Replace two lines in the for
loop with following:
String partString = input.substring(0, i) + input.substring(i + 1);
shuffle(dummy + input.charAt(i), partString);
Since this looks like your homework I will let you figure out. If not, will post explanation after a bit ( got to get back to my day job ;) )