@@ -0,0 +1,817 @@
+public class Diamond %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A%0A        int SIZE = 5;%0A%0A        for (int i = 0; i %3C SIZE; i++) %7B%0A%0A            for (int j = 0; j %3C SIZE - (i + 1); j++) %7B%0A                System.out.print(%22 %22);%0A            %7D%0A%0A            for (int j = 0; j %3C (i + 1) * 2 - 1; j++) %7B%0A                System.out.print(%22*%22);%0A            %7D%0A%0A            System.out.print(%22%5Cn%22);%0A%0A        %7D%0A%0A        for (int i = 1; i %3C SIZE; i++) %7B%0A%0A            for (int j = 0; j %3C i; j++) %7B%0A                System.out.print(%22 %22);%0A            %7D%0A%0A            for (int j = 0; j %3C (SIZE - i) * 2 - 1; j++) %7B%0A                System.out.print(%22*%22);%0A            %7D%0A%0A            System.out.print(%22%5Cn%22);%0A%0A        %7D%0A%0A    %7D%0A%0A%7D%0A%0A/*%0A--- result ---%0A    *%0A   ***%0A  *****%0A *******%0A*********%0A *******%0A  *****%0A   ***%0A    *%0A--------------%0A*/%0A

Create Diamond