@StephenCoyle
Please read this: http://www.javaprogrammingforums.com/cafe/9544-problem-spoon-feeding.html
Type: Posts; User: Norm
@StephenCoyle
Please read this: http://www.javaprogrammingforums.com/cafe/9544-problem-spoon-feeding.html
Try reducing the nesting depth to 2.
Write some pseudo code for how the code works
Why are the the loops nested 3 deep?
Here's what should work:
One loop for each row
one loop for the columns on each row
What are the other loops for?
The endline character: "\n"or what is printed by the println() method.
What I'm talking about is the line.separator value. Its value depends on what OS you are on. On Windows its: "\r\n" or...
I think it'd be easier to completely rewrite the code rather than try to fix what is there.
Pseudo code:
print the header
begin loop through rows
print the row header in first column
begin...
Can you post what you want the output to look like? And add some comments saying what is wrong with the program's current output.