@@ -0,0 +1,1362 @@
+package coding4fun;%0A%0A/**%0A * Given a string and a number, and print the string diagonally filling in%0A * empty space with periods and going down as many lines as the given number.%0A * %0A * So %22Peter piper picked a peck of pickled peppers%22 becomes%0A * %3Cpre%3E%0A * P.........r......... .........i.........p...%0A * .e......... .........p.........c.........e..%0A * ..t.........p.........e.........k.........r.%0A * ...e.........i.........c.........l.........s%0A * ....r.........c.........k.........e.........%0A * ..... .........k......... .........d........%0A * ......P.........e.........o......... .......%0A * .......i.........d.........f.........P...... %0A * ........p......... ......... .........e.....%0A * .........e.........a.........p.........p....%0A * %3C/pre%3E%0A */%0Apublic class Problem2 %7B%0A    public static void main(String%5B%5D args) %7B%0A        String str = %22Peter piper picked a peck of pickled peppers%22;%0A        int n = 10;%0A        for (int i = 0; i %3C n; i++) %7B%0A            for (int k = 0; k %3C i; k++) %7B%0A                System.out.print(%22.%22);%0A            %7D%0A            for (int j = 0; j %3C str.length() - i; j++) %7B%0A                if (j %25 n == 0 && j + i %3C str.length()) %7B%0A                    System.out.print(str.charAt(j + i));%0A                %7D else %7B%0A                    System.out.print(%22.%22);%0A                %7D%0A            %7D%0A            System.out.println();%0A        %7D%0A    %7D%0A%7D%0A

Add problem 2