Please use the highlight tags when posting code. Also, code should be in the form of an SSCCE that demonstrates a single piece- in your case, outputting arrays as a table.

What is the trouble?...