Draw a timetable in console out of 3D-Array
<p>I want to draw  a timetable in console application:</p>

<pre><code>---------------------------------------------------
 |    Mo     |    Tu     |    We     |    ...     |
---------------------------------------------------
1| Math      |           |           |            |
 | Teacher   |           |           |            |
 | Room      |           |           |            |
---------------------------------------------------
2| ...
</code></pre>

<p>I guess it's an 3D-Array. Dimension 1 is x, dimension 2 is y and dimension 3 is an object called "lesson".
The properties of the lesson-objects are topic, teacher, room and others (begin, end, ...)</p>

<pre><code> -------------------------------------------------------------------------
 |    Mo           |    Tu     |    We     |    ...     |
 -------------------------------------------------------------------------
 | Math            |           |           |            |
 | Teacher         |           |           |            |
 | Room            |           |           |            |
 | Begin: 2012.1.1 |           |           |            |
 -------------------------------------------------------------------------
</code></pre>

<p>The appearance should automatically fit rows, width and so on.</p>

<p>A really cool solution can be <a href="http://stackoverflow.com/a/856918/1208574">found here</a></p>

<p>But the solution is only 2D. I did some investigation, but cannot fill in complete object.</p>
