@@ -0,0 +1,412 @@
+import edu.princeton.cs.algs4.StdIn;%0Aimport edu.princeton.cs.algs4.StdOut;%0A%0A%0Apublic class Permutation %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        int k = Integer.parseInt(args%5B0%5D);%0A        RandomizedQueue%3CString%3E queue = new RandomizedQueue%3C%3E();%0A%0A        while(!StdIn.isEmpty()) %7B%0A            queue.enqueue(StdIn.readString());%0A        %7D%0A%0A        for (String s: queue) %7B StdOut.println(s); %7D%0A    %7D%0A%7D%0A

Create Permutation.java