package ru.job4j;

/**.
*
* @author Anton Vasilyuk
* @version 1.0
* @since 0.1
*/

public class Paint {
	/**.
	* Method for construction piramid
	* @param h height piramid
	* @return result
	*/
	public String piramid(int h) {

		StringBuilder pir = new StringBuilder();
		/**.
		* @floor body line
		*/
		String floor = "^ ";
		/**.
		* @res next line
		*/
		String res = "\n";
		/**.
		* @i index
		*/
		int i = 0;
		for (i = 0; i < h; i++) {
            String spica = "";
            int x;
            for (x = 0; x < h - 1 - i; x++) {
                spica = spica + " ";
            }

            pir.append(spica).append(floor).append(res);
            floor = floor + "^ ";

        }
		return pir.toString();

	}

}
@@ -267,140 +267,54 @@
 ();%0A
-%09%09/**.%0A%09%09* @floor body line%0A%09%09*/%0A%09%09String floor = %22%5E %22;%0A%09%09/**.%0A%09%09* @res next line%0A%09%09*/%0A%09%09String res = %22%5Cn%22;%0A%09%09/**.%0A%09%09* @i index%0A%09%09*/
+%0A%09%09String floor = %22%5E %22;%0A%0A%09%09String res = %22%5Cn%22;%0A
 %0A%09%09i

add file for chapter_001_4.3