@@ -0,0 +1,812 @@
+/*%0A * To change this license header, choose License Headers in Project Properties.%0A * To change this template file, choose Tools %7C Templates%0A * and open the template in the editor.%0A */%0Apackage com.blogspot.na5cent.pyramid;%0A%0A/**%0A *%0A * @author anonymous%0A */%0Apublic class Example2 %7B%0A%0A    private static void walk(int max, int running, boolean deep) %7B%0A        if (deep) %7B%0A            walk(running, 1, false);%0A        %7D else %7B%0A            System.out.print(running + %22 %22);%0A        %7D%0A%0A        if (running == max) %7B%0A            if (!deep) %7B%0A                System.out.println(%22%22);%0A            %7D%0A            return;%0A        %7D%0A%0A        walk(max, ++running, deep);%0A        if (deep) %7B%0A            walk(running - 1, 1, false);%0A        %7D%0A    %7D%0A%0A    public static void main(String%5B%5D args) %7B%0A        walk(7, 1, true);%0A    %7D%0A%0A%7D%0A

add Example2