@@ -3071,12 +3072,12 @@ for (int row = 0; row < numberOfRows; row++) {
⟹ |
- ␣␣␣␣␣␣*
-␣␣␣␣␣**
-␣␣␣␣***
-␣␣␣****
-␣␣*****
-␣******
+ ␣␣␣␣␣␣*
+␣␣␣␣␣**
+␣␣␣␣***
+␣␣␣****
+␣␣*****
+␣******
******* |
@@ -3102,23 +3103,23 @@ Row index 5 ***********
We require the precise indentation values when
e.g. starting the tree's body. The following
sketch shows two trees of different sizes representing invisible
- spaces by ␣ . In the »bigger« tree's first line we
- need e.g. 5 spaces before actually printing the
- tree's very top X
+ spaces by ␣ . In
+ the »bigger« tree's first line we need e.g. 5
+ spaces before actually printing the tree's very top
+ 'X' character.
- A tree with A tree with
+ A tree with A tree with
6 body rows 2 row groups
-␣␣␣␣␣X ␣␣␣X
-␣␣␣␣␣* ␣␣␣*
-␣␣␣␣*** ␣␣***
-␣␣␣***** ␣*****
-␣␣******* *******
-␣********* ␣␣###
+␣␣␣␣␣X ␣␣␣X
+␣␣␣␣␣* ␣␣␣*
+␣␣␣␣*** ␣␣***
+␣␣␣***** ␣*****
+␣␣******* *******
+␣********* ␣␣###
***********
-␣␣␣␣###
-␣␣␣␣###
+␣␣␣␣###
+␣␣␣␣###
The precise amounts of these indentations depend on the
tree's size. Printing larger trees requires larger indentation
@@ -3129,7 +3130,7 @@ Row index 5 ***********
We start printing the tree's top. This requires numberOfRows space characters followed by
- the top's X character:
+ the top's 'X' character:
@@ -3147,11 +3148,11 @@ Row index 5 ***********
role="red">X" top. We need
System.out.print(' '); // numberOfRowGroups preceding spaces (␣)
} // before eventually printing the
-System.out.println("X"); // "X'); // "X" String followed by a newline (println). |
- ␣␣␣␣␣X (␣
+ ␣␣␣␣␣X(␣
denoting space) |
@@ -3182,7 +3183,7 @@ System.out.println("X");
System.out.print(' '); // (numberOfRows - row)
} // space (␣) characters ...
- for (int x = 0; x < 2 * row + 1; x ++) { // .. then printing (2*row+1)
+ for (int x = 0; x < 2 * row + 1; x ++) { // .. then printing (2 * row + 1)
// asterisk('*') characters ...
System.out.print('*'); // (May try 'X");
System.out.print("\n"); // ... and finally terminating the
} // current body row. |
- ␣␣␣␣␣X
-␣␣␣␣␣*
-␣␣␣␣***
-␣␣␣*****
-␣␣*******
-␣*********
-*********** |
+ ␣␣␣␣␣X
+␣␣␣␣␣*
+␣␣␣␣***
+␣␣␣*****
+␣␣*******
+␣*********
+*********** |
@@ -3426,11 +3412,11 @@ System.out.format("%"+ (numberOfRows + 1) + "s\n", "###");