@@ -0,0 +1,684 @@
+package by.vorokhobko;%0A%0A/**%0A* Paint.%0A* Class Paint draws a pyramid in character graphics of part 001, lessson 4.%0A* @author Vorokhobko Evgeny (vorokhobko2011@yandex.ru).%0A* @since 15.12.2016.%0A* @version 4%0A*/%0A%0Apublic class Paint %7B%0A%09/**%0A%09* The class field.%0A%09* The method draws a pyramid.%0A%09* @param h - h.%0A%09* @return tag.%0A%09*/%0A%0A%09public String pyramid(int h) %7B%0A%09%09StringBuilder sb = new StringBuilder();%0A%09%09for (int first = 0; first %3C h; first++) %7B%0A%09%09%09for (int second = 0; second %3C= (h - first); second++) %7B%0A%09%09%09%09sb.append(%22 %22);%0A%09%09%09%7D%0A%09%09%09for (int three = 0; three %3C= first; three++) %7B%0A%09%09%09%09sb.append(%22%5E %22);%0A%09%09%09%7D%0A%09%09%09sb.append(System.getProperty(%22line.separator%22));%0A%09%09%7D%0A%09%09return sb.toString();%0A%09%7D%0A%7D

add class Paint