public class ArrayIndexOutOfBoundsException extends IndexOutOfBoundsException
int[] i = { 1 };
i[1] = 2;
| Constructor and Description |
|---|
ArrayIndexOutOfBoundsException()
Create an exception without a message.
|
ArrayIndexOutOfBoundsException(int index)
Create an exception indicating the illegal index.
|
ArrayIndexOutOfBoundsException(String s)
Create an exception with a message.
|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ArrayIndexOutOfBoundsException()
public ArrayIndexOutOfBoundsException(String s)
s - the messagepublic ArrayIndexOutOfBoundsException(int index)
index - the invalid index