[NOTE: I indented the for loops for better reading. DrJava doesn't do it automatically in the Interactions pane] > for (int i = 1; i <= 10; i++) { System.out.println("I will not throw the principal's toupee down the toilet."); } I will not throw the principal's toupee down the toilet. I will not throw the principal's toupee down the toilet. I will not throw the principal's toupee down the toilet. I will not throw the principal's toupee down the toilet. I will not throw the principal's toupee down the toilet. I will not throw the principal's toupee down the toilet. I will not throw the principal's toupee down the toilet. I will not throw the principal's toupee down the toilet. I will not throw the principal's toupee down the toilet. I will not throw the principal's toupee down the toilet. > int j = 10; > for (int i = 1; j <= 20; j++) { System.out.println("j = " + j); } j = 10 j = 11 j = 12 j = 13 j = 14 j = 15 j = 16 j = 17 j = 18 j = 19 j = 20 > for (; j <= 30; j++) { System.out.println("j = " + j); } j = 21 j = 22 j = 23 j = 24 j = 25 j = 26 j = 27 j = 28 j = 29 j = 30 > double k = 1.0; > for (; k <= 10; k++) { System.out.println("k = " + k); } k = 1.0 k = 2.0 k = 3.0 k = 4.0 k = 5.0 k = 6.0 k = 7.0 k = 8.0 k = 9.0 k = 10.0 > for (int i = 1; i <= 5; i++) { System.out.print(i * 3 + " "); } 3 6 9 12 15 > [NOTE: The reason the '>' appears at the end of the last for loop is because there is no println to create a new line at the end, thus the prompt (i.e., '>') appears right after the output] > for (int i = 1; i <= 5; i++) { System.out.println(i * 3 + 1 + " "); } 4 7 10 13 16 > for (int i = 1; i <= 50; i += 2) { System.out.println(i); } 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 > for (int m = 1; m <= 5; m++) { for (int n = 1; n <= 10; n++) { System.out.print((m*n) + " "); } System.out.println(); } 1 2 3 4 5 6 7 8 9 10 2 4 6 8 10 12 14 16 18 20 3 6 9 12 15 18 21 24 27 30 4 8 12 16 20 24 28 32 36 40 5 10 15 20 25 30 35 40 45 50 > for (int m = 1; m <= 5; m++) { for (int n = 1; n <= 10; n++) { System.out.print((m) + " "); } System.out.println(); } 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 4 4 4 4 4 4 4 4 4 4 5 5 5 5 5 5 5 5 5 5 > for (int line = 1; line <= 5; line++) { for (int q = 1; q <= (-1 * line + 5); q++) { System.out.print("."); } System.out.println(line); } ....1 ...2 ..3 .4 5 > for (int line = 1; line <= 5; line++) { for (int q = 1; q <= (-1 * line + 5); q++) { System.out.print("."); } System.out.print(line); for (int q = 1; q <= (line - 1); q++) { System.out.print("."); } System.out.println(); } ....1 ...2. ..3.. .4... 5....