Showing posts with label Loop. Show all posts
Showing posts with label Loop. Show all posts

Friday, October 30, 2009

Published 10/30/2009 by with 0 comment

java.lang.ArrayIndexOutOfBoundsException

It's a very common runtime error message or exception we face when we use array wrongly. Very specifically this exception is thrown to indicate that an array has been accessed with an illegal index (location / position / subscript). The index is either negative or greater than or equal to the size of the array. See the following code: int data[]={5,7,18,21,27,15,3}; //show the array elementsfor(int...
Read More
    email this       edit