Curious About IndexOutofBoundException
Hi guys, I'm just wandering why IndexOutofBoundsException occurs? My error says, that exception in Animation thread after that is a Size:1, Index: 1... I had solved the problem but as I rerun my program many more times, it occurs again... any answer? and how would I be able to solve it?
Re: Curious About IndexOutofBoundException
Arrays are numbered beginning with zero. So an array of size 1 has a single element whose index number is 0, not 1
So an array with indices 0 1 2 3 has a size of 4
More on the topic