Thrown by 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.


You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • String Index OutOfBoundsException?
    via Stack Overflow by Marc
  • Java - StringIndexOutOfBoundsException
    via Stack Overflow by Gökhan Nas
    • java.lang.StringIndexOutOfBoundsException: String index out of range: 6 at java.lang.String.charAt(Unknown Source) at j32016.main(

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    12 times, last one,
    1 times, last one,
    1 times, last one,
    30 more bugmates