@@ -0,0 +1,636 @@
+package ru.job4j.loop;%0A%0A/**%0A * Paint.%0A *%0A * @author mklimentiev%0A * @version 1.0%0A * @since 15.04.2017%0A*/%0Apublic class Paint %7B%0A%09/**%0A%09 * piramid.%0A%09 * The method piramid(int h) builds a pyramid according to height that pass as a parameter;%0A%09 * @param h -- the first parameter;%0A%09*/%0A%09public void piramid(int h) %7B%0A%09%09StringBuilder builder = new StringBuilder();%0A%09%09for (int i = 1; i %3C= h; i++) %7B%0A%09%09%09for (int j = 1; j %3C= h * 2 - 1; j++) %7B%0A%09%09%09%09if (j %3E h- i && j %3C h + i) %7B%0A%09%09%09%09%09builder.append(%22*%22);%0A%09%09%09%09%7D else %7B  %0A%09%09%09%09%09builder.append(%22 %22);%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%09System.getProperty(%22line.separator%22);%0A%09%09%7D %0A%09%09System.out.printlln(builder.toString());%0A%09%7D%0A%0A%0A%0A%0A

add Paint.java