Name
StringIndexOutOfBoundsException
Synopsis
Signals
that the index used to access a character of a
String
or StringBuffer
is less
than zero or is too large.
Figure 10-61. java.lang.StringIndexOutOfBoundsException
public class StringIndexOutOfBoundsException extends IndexOutOfBoundsException { // Public Constructors public StringIndexOutOfBoundsException( ); public StringIndexOutOfBoundsException(int index); public StringIndexOutOfBoundsException(String s); }
Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.