T
tiewknvc9
Hi.
Im getting an ArrayIndexOutOfBoundsException when using an array, and
while I know I can use a try catch statement to get around this
problem, I was wondering if there was a way to test to see if the
element exists instead.
for instance.
if (myArray[67].exists){
//then do something with myArray[67]
}
thanks.
Im getting an ArrayIndexOutOfBoundsException when using an array, and
while I know I can use a try catch statement to get around this
problem, I was wondering if there was a way to test to see if the
element exists instead.
for instance.
if (myArray[67].exists){
//then do something with myArray[67]
}
thanks.