Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

ArrayIndexOutOfBoundsException

class AccessArrayOutsie
{
    public static void main (String[] args)
    {
        int[] array = new int[3];
        array[0] = 3;
        array[1] = 5;
  	array[2] = 6;
 
        for (int i = 0; i <= array.length; i++)
            System.out.println(array[i]);
    }
}
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #ArrayIndexOutOfBoundsException
ADD COMMENT
Topic
Name
3+2 =