@@ -0,0 +1,1081 @@
+package coding4fun;%0A%0A/**%0A * Given a 2D array, such as:%0A * %3Cpre%3E%0A * Input:%0A * %7B%7B%22a1%22, %22b1%22, %22c1%22%7D,%0A *  %7B%22a2%22, %22b2%22, %22c2%22, %22d2%22%7D,%0A *  %7B%22a3%22, %22b3%22%7D,%0A *  %7B%22a4%22%7D%7D%0A * %3C/pre%3E%0A *  %0A * Print the 2D array in the following order:%0A * %3Cpre%3E%0A * Output:%0A * a1, a2, a3, a4, b1, b2, b4, c1, c2, d2%0A * %3C/pre%3E%0A */%0Apublic class Problem9 %7B%0A    private static void print(String%5B%5D%5B%5D array) %7B%0A        int col = 0;%0A        while (true) %7B%0A            boolean found = false;%0A            for (int row = 0; row %3C array.length; row++) %7B%0A                if (array%5Brow%5D.length %3E col) %7B%0A                    System.out.print(array%5Brow%5D%5Bcol%5D + %22 %22);%0A                    found = true;%0A                %7D%0A            %7D%0A            if (!found) %7B%0A                break;%0A            %7D%0A            col++;%0A        %7D%0A    %7D%0A    %0A    public static void main(String%5B%5D args) %7B%0A        String%5B%5D%5B%5D array = new String%5B%5D%5B%5D %7B%0A            new String%5B%5D %7B%22a1%22, %22b1%22, %22c1%22%7D,%0A            new String%5B%5D %7B%22a2%22, %22b2%22, %22c2%22, %22d2%22%7D,%0A            new String%5B%5D %7B%22a3%22, %22b3%22%7D,%0A            new String%5B%5D %7B%22a4%22%7D%0A        %7D;%0A        print(array);%0A    %7D%0A%7D%0A

Add problem 9