@@ -0,0 +1,285 @@
+package Chapter1.Section2;%0A%0Aimport edu.princeton.cs.algs4.StdOut;%0A%0Apublic class Exercise05%0A%7B%0A    public static void main (String%5B%5D args)%0A    %7B%0A%09String s = %22Hello World%22;%0A%09s.toUpperCase();%0A%09s.substring(6, 11);%0A%09StdOut.println(s); // Prints %22Hello World%22 because it is immutable%0A    %7D%0A%7D%0A

Solved 1.2.5