Recommended solutions based on your search
Thrown by the methods of the String class to indicate that an index is either negative, or greater than the size of the string itself. You are probably using the wrong index when accessing substring of the array.
Solutions on the web
java.lang.StringIndexOutOfBoundsException: String index out of range: 2