String methods to indicate that an index is either negative
or greater than the size of the string. For some methods such as the
charAt method, this exception also is thrown when the
index is equal to the size of the string.
java.lang.String#charAt(int)
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | StringIndexOutOfBoundsException()
Constructs a |
| public | StringIndexOutOfBoundsException(String
the detail message. s)Constructs a |
| public | StringIndexOutOfBoundsException(int
the illegal index. index)Constructs a new |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. | |
| StringIndexOutOfBoundsException | back to summary |
|---|---|
| public StringIndexOutOfBoundsException() Constructs a | |
| StringIndexOutOfBoundsException | back to summary |
|---|---|
| public StringIndexOutOfBoundsException(String s) Constructs a
| |
| StringIndexOutOfBoundsException | back to summary |
|---|---|
| public StringIndexOutOfBoundsException(int index) Constructs a new The index is included in this exception's detail message. The exact presentation format of the detail message is unspecified.
| |