Search:

Type: Posts; User: Norm

Search: Search took 0.09 seconds.

  1. Replies
    26
    Views
    3,603

    Re: Problem with Two-Dimensional Array Program

    Glad you got it working.
    No idea how to mark this as solved.
  2. Replies
    26
    Views
    3,603

    Re: Problem with Two-Dimensional Array Program

    Why is the value of the index less than 0 (-1) at line 175?
    Where do you set its value? Again printlns will help you find where the logic is going wrong.
  3. Replies
    26
    Views
    3,603

    Re: Problem with Two-Dimensional Array Program

    That means there are two separate, independent variables. Having the same name does not connect them in any way.
    The one in the constructor goes away when the constructor exits.
    When do you give...
  4. Replies
    26
    Views
    3,603

    Re: Problem with Two-Dimensional Array Program

    Where is it defined?
    Do you know the syntax for defining a variable?
    <datatype> <variable name>
    How many places is there a statement that starts with:
    int and has numRows somewhere to the right?
  5. Replies
    26
    Views
    3,603

    Re: Problem with Two-Dimensional Array Program

    Use your editor's find to look at ALL the places numRows is coded.
    Where is it defined? Where is it given values?
  6. Replies
    26
    Views
    3,603

    Re: Problem with Two-Dimensional Array Program

    Did you print out ALL the variables used to control the looping in the methods?
    Your code shows print outs for i & j
    What about:
    for (i=0; i<numRows; i++)
  7. Replies
    26
    Views
    3,603

    Re: Problem with Two-Dimensional Array Program

    Have you found the problem yet?
    I see that You don't print out ALL of the variables' values. You need to print out the values of ALL variables used in those methods to see why the for loops are not...
  8. Replies
    26
    Views
    3,603

    Re: Problem with Two-Dimensional Array Program

    Print out the values of ALL variables used in those methods to see why the for loops are not entered.
  9. Replies
    26
    Views
    3,603

    Re: Problem with Two-Dimensional Array Program

    If nothing is printed by the methods that are being called from the main method, then add some more println statements to those methods to show the values of the variables that control the logic in...
  10. Replies
    26
    Views
    3,603

    Re: Problem with Two-Dimensional Array Program

    put spaces around the =
  11. Replies
    26
    Views
    3,603

    Re: Problem with Two-Dimensional Array Program

    Please Edit your post and wrap your code with
    <YOUR CODE HERE> to get highlighting

    What text is next to the = that make the faces?


    Where do you call any of the methods?
Results 1 to 11 of 11