Array position question
in
Programming Questions
•
1 year ago
I am comparing two values in an array but I want to start with j = 0. This obviously creates an array out of bounds error.
Is there another solution to this problem? I am using j to position a rect, since I start at 3, it is creating problems with my grid.
Thanks
- for (int j = 3; j < yearValues.length; j++) {
- if (yearValues[j-1] > yearValues[j]) {
- fill(215, 25, 28);
1