So I have a 10x10 matrix of a class called distance, and it goes something like
with instances of "null" and "new Distance()" in it, and it's compiling fine so I don't think there's any issues there. However, since it's a matrix of my distance classes, I can't call the addObject() method inside it, so I figured I'd make a loop that does that for me.
Long story short, it's not working. It compiles but I get a blank screen, something I've come across when I've had infinite loops and such, but I don't think that's the case here. Any ideas? I can post more of the code if anyone needs it.
Distance[][] matrix = { { } }
int i = 0; int j = 0; while (i < 10 && j < 10) { if (matrix[i][j] != null) { addObject(matrix[i][j], 640, 360); } i++; j++; }