Glad you got it working.
No idea how to mark this as solved.
Type: Posts; User: Norm
Glad you got it working.
No idea how to mark this as solved.
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.
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...
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?
Use your editor's find to look at ALL the places numRows is coded.
Where is it defined? Where is it given values?
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++)
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...
Print out the values of ALL variables used in those methods to see why the for loops are not entered.
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...
put spaces around the =
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?