@@ -0,0 +1,1247 @@
+package coding4fun;%0A%0Aimport java.util.Arrays;%0A%0A/**%0A * Write an algorithm to perform a Tetris rotation.%0A */%0Apublic class Problem24 %7B%0A    public static void rotate(char%5B%5D%5B%5D block) %7B%0A        char%5B%5D%5B%5D aux = new char%5Bblock.length%5D%5B%5D;%0A        for (int row = 0; row %3C block.length; row++) %7B%0A            aux%5Brow%5D = new char%5Bblock%5Brow%5D.length%5D;%0A            for (int col = 0; col %3C block%5Brow%5D.length; col++) %7B%0A                aux%5Brow%5D%5Bcol%5D = block%5Brow%5D%5Bcol%5D;%0A            %7D%0A        %7D%0A%0A        for (int row = 0; row %3C block.length; row++) %7B%0A            for (int col = 0; col %3C block%5Brow%5D.length; col++) %7B%0A                // TODO%0A            %7D%0A        %7D%0A    %7D%0A%0A    private static void print(char%5B%5D%5B%5D block) %7B%0A        for (char%5B%5D chars : block) %7B%0A            System.out.println(Arrays.toString(chars));%0A        %7D%0A        System.out.println(%22-----------------------------------------------------------%22);%0A    %7D%0A%0A    public static void main(String%5B%5D args) %7B%0A        char%5B%5D%5B%5D block = new char%5B%5D%5B%5D%7B%0A            %7B' ', ' ', ' '%7D,%0A            %7B'*', '*', '*'%7D,%0A            %7B' ', '*', ' '%7D,%0A        %7D;%0A        print(block);%0A%0A        rotate(block);%0A        print(block);%0A%0A        rotate(block);%0A        print(block);%0A%0A        rotate(block);%0A        print(block);%0A    %7D%0A%7D%0A

Add skeleton for problem 24