@@ -0,0 +1,976 @@
+/*%0A * Nested loop example%0A *%0A * IT-145 Foundations of Application Development%0A *%0A * College of Online and Continuing Education%0A * Southern New Hampshire University%0A *%0A * @author John Watson %3Cjohn.watson@snhu.edu%3E%0A *%0A * Compile command:%0A *   %3E javac NestedLoop.java%0A *%0A * Run command:%0A *   %3E java -cp . NestedLoop%0A *%0A * Output:%0A *   %5B1:1%5D +%0A *   %5B2:4%5D ++++%0A *   %5B3:9%5D +++++++++%0A *   %5B4:16%5D ++++++++++++++++%0A *   %5B5:25%5D +++++++++++++++++++++++++%0A */%0Apublic class NestedLoop %7B%0A%0A    /**%0A     * @param args the command line arguments%0A     */%0A    public static void main(String%5B%5D args) %7B%0A%0A        // outer loop - print index and index%5E2%0A        for (int i = 1; i %3C= 5; i++) %7B%0A            System.out.print(%22%5B%22 + i + %22:%22 + i*i + %22%5D %22);%0A%0A            // inner loop - print i%5E2 %22+%22%0A            for (int k = 1; k %3C= (i*i); k++) %7B%0A                System.out.print(%22+%22);%0A            %7D%0A%0A            // after inner loop, print a linefeed%0A            System.out.println();%0A        %7D%0A    %7D   %0A%7D

Add NestedLoop