Java Reference
In-Depth Information
To read this output, you have to imagine rotating the page 90 degrees in a clock-
wise fashion or tilting your head slightly to the left. The output is a little easier to see
if we throw in some lines:
5
7
6
The lines are a little tricky to produce, so let's settle for producing the simple out-
put and you'll have to mentally add the lines. For example, you might get output like
the following for a tree with four levels:
15
7
14
3
13
6
12
1
11
5
10
2
9
4
8
Again, imagine rotating this output 90 degrees (or rotating the page on which it is
printed). The result looks like this:
1
2
3
4
5
6
7
8
9
10 11
12 13 14 15
Search WWH ::




Custom Search