I have an interesting issue being reported to me from the Android application that I posted. I have a two-dimensional array, which I repeat using two for such loops:
for (int i = 0; i < arr.length; ++i)
{
for (int j = 0; j < arr[i].length; ++j)
{
if (arr[i][j] != 0)
}
}
The problem is that somehow arr [i] [j]! = 0 throws an ArrayIndexOutOfBoundsException. But very seldom. I have thousands of users using the app every day and receive perhaps twenty strong private reports.
I canโt avoid this, maybe there is a problem with the memory of phones, etc., or is there something I can do that I havenโt thought about yet? Thank.
source
share