package cicles;


public class Paint {



    String piramid (int h){

        StringBuilder sb = new StringBuilder(); // создаем обьект класса Stringbuilder


        for (int i=1;i<=h; i++){
            int  wieght = 2*h-1;
            boolean flag = true;
            for (int j =1;j <=wieght; j++) {

                if (j>h-i &&j<h+i ){
                    sb.append("1");

                }


                 else
                    sb.append("0");

            }
            sb.append("\r\n");

       }
        return sb.toString();




    }



    public static void main (String [] args){
      Paint paint = new Paint ();
        String piramid = paint.piramid(3);
        System.out.println(piramid);
    }
}

@@ -13,33 +13,167 @@
 es;%0A
-%0A%0Apublic class Paint %7B%0A%0A%0A
+/** Class Paint, turn array;%0A * @author grensnow25;%0A * @since 29.11.16;%0A * @version 7;%0A */%0A%0A%0Apublic class Paint %7B%0A%0A%0A /*%0A   @ return %D0%B7yramid of the symbols%0A  */
 %0A   
@@ -253,29 +253,32 @@
  // 
-%D1%81%D0%BE%D0%B7%D0%B4%D0%B0%D0%B5%D0%BC %D0%BE%D0%B1%D1%8C%D0%B5%D0%BA%D1%82 %D0%BA%D0%BB%D0%B0%D1%81%D1%81%D0%B0
+creating objeck of class
  Str
@@ -322,16 +322,62 @@
 h; i++)%7B
+                //create a loop to view column
 %0A       
@@ -401,17 +401,20 @@
 = 2*h-1;
-%0A
+    
         
@@ -421,28 +421,70 @@
     
-boolean flag = true;
+// integer variable that is equal to the length of the pyramid
 %0A   
@@ -524,16 +524,47 @@
 ; j++) %7B
+   //create a loop to view line
 %0A%0A      
@@ -582,23 +582,71 @@
 f (j
-%3Eh-i &&j%3C
+==h-i+1 %7C%7C j==
 h+i
+-1
  )%7B
+    //a condition where the insert symbol
 %0A   
@@ -673,17 +673,17 @@
 append(%22
-1
+%5E
 %22);%0A%0A   
@@ -698,17 +698,16 @@
      %7D%0A%0A
-%0A
         
@@ -755,9 +755,9 @@
 nd(%22
-0
+ 
 %22);%0A
@@ -805,27 +805,23 @@
 n%22);
-%0A%0A
        
-%7D%0A
         
 retu
@@ -820,207 +820,96 @@
     
-return sb.toString();%0A%0A%0A%0A%0A    %7D%0A%0A%0A%0A    public static void main (String %5B%5D args)%7B%0A      Paint paint = new Paint ();%0A        String piramid = paint.piramid(3);%0A        System.out.println(piramid);
+  //when the deadline for a newline%0A%0A       %7D%0A        return sb.toString();%0A%0A%0A%0A
 %0A    %7D%0A
+%0A%0A%0A%0A
 %7D%0A

build the piramid