Well once you run the program, the histograms are actually printing before every thing else.
But the way that my "table" is formatted and required by the conditions, means that it should be printed last, in a neat column.
i.e.
Element Value Histogram
00 4 ****
01 3 ***
etc.etc.
So my trouble is actually getting it in the right place format wise.
If you want to output the the histogram after the other information in the row, then... just move the code that outputs it to after the code that outputs the things that come before it.
Currently, for each row, you do:
- output histogram (using loop)
- output [i][j]
- output value of the element
- output an endline
Just re-arrange the order of those things until they're what you want them to be, i.e.
- output [i][j]
- output value of the element
- output histogram (using loop)
- output an endline