@@ -0,0 +1,939 @@
+package ru.job4j;%0A%0A/**%0A * Paint class for pyramid building.%0A * @author ayuzyak.%0A * @version 1.%0A * @since 20.12.2016.%0A */%0Apublic class Paint %7B%0A    /**%0A     * Build pyramid.%0A     * @param h - pyramid height%0A     * @return%0A     */%0A    public  String piramid(int h) %7B%0A        //Return emty string if height = 0%0A        if (h == 0) return %22%22;%0A        //Return one height pyramid%0A        if (h == 1) return %22%5E%22;%0A%0A        int level = h;%0A        StringBuilder builder = new StringBuilder();%0A%0A        while (level %3E 0) %7B%0A            //Fill with spaces before %5E%0A            for (int i = 1; i %3C= level - 1; i++) %7B%0A                builder.append(%22 %22);%0A            %7D%0A            //Fill with %5E after spaces%0A            for (int i = 1; i %3C= h - level + 1; i++) %7B%0A                builder.append(%22%5E%22);%0A            %7D%0A            level--;%0A            builder.append(System.getProperty(%22line.separator%22));%0A        %7D%0A%0A        return builder.toString();%0A    %7D%0A%7D

add Paint.java