(int n)
| 10 | // * * * * |
| 11 | // * * * * |
| 12 | private static void patter2(int n) { |
| 13 | // for every row, run the col |
| 14 | for (int row = 0; row <= n; row++) { |
| 15 | for (int col = 0; col < n; col++) { |
| 16 | System.out.print("* "); |
| 17 | } |
| 18 | System.out.println(); |
| 19 | } |
| 20 | } |
| 21 | } |