Search:

Type: Posts; User: Norm

Search: Search took 0.11 seconds.

  1. Thread: Array Looping

    by Norm
    Replies
    13
    Views
    1,311

    Re: Array Looping

    @StephenCoyle
    Please read this: http://www.javaprogrammingforums.com/cafe/9544-problem-spoon-feeding.html
  2. Thread: Array Looping

    by Norm
    Replies
    13
    Views
    1,311

    Re: Array Looping

    Try reducing the nesting depth to 2.

    Write some pseudo code for how the code works
  3. Thread: Array Looping

    by Norm
    Replies
    13
    Views
    1,311

    Re: Array Looping

    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?
  4. Thread: Array Looping

    by Norm
    Replies
    13
    Views
    1,311

    Re: Array Looping

    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...
  5. Thread: Array Looping

    by Norm
    Replies
    13
    Views
    1,311

    Re: Array Looping

    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...
  6. Thread: Array Looping

    by Norm
    Replies
    13
    Views
    1,311

    Re: Array Looping

    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.
Results 1 to 6 of 6