posted 10 years ago
I know it is the length of the array but I can't seem to figure out what the source of the problem is.
Array: new int[][] { { 0, 1, 2, 3 }, { 10, 11, 12, 13 },
{ 20, 21, 22, 23 } };
java.lang.ArrayIndexOutOfBoundsException: 3
on this line of course:tgt[tgtX][tgtY]=source[srcX][srcY];
It doesn't seem to matter what I do to the array sizes I can't fix it. Thanks for any help!