Name

StringIndexOutOfBoundsException

Synopsis

This exception is thrown when an operation is attempted on a String or StringBuffer object involving an index that is either negative or too large. This class is the same as its J2SE equivalent, apart from its inability to be serialized.

                  Returned By
public class StringIndexOutOfBoundsException extends IndexOutOfBoundsException {  
// Public Constructors
   public StringIndexOutOfBoundsException();  
   public StringIndexOutOfBoundsException( int index);  
   public StringIndexOutOfBoundsException( String s);  
}

Get J2ME in a Nutshell 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.