@@ -0,0 +1,411 @@
+package Chapter1.Section2;%0A%0Aimport edu.princeton.cs.algs4.StdOut;%0A%0Apublic class Exercise06%0A%7B%0A    public static void main (String%5B%5D args)%0A    %7B%0A%09StdOut.println(%0A%09    args%5B0%5D %0A%09    + %22 and %22 %0A%09    + args%5B1%5D %0A%09    + %22 are circular: %22%0A%09    + areCircular(args%5B0%5D, args%5B1%5D));%0A    %7D%0A%0A    private static boolean areCircular(String s, String t)%0A    %7B%0A%09return (s + s).indexOf(t) %3E= 0 && s.length() == t.length();%0A    %7D%0A%7D%0A

Solved 1.2.6