java.lang.StringIndexOutOfBoundsException: String index out of range: 1

tip

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.


rafael

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

  • IndexOutOfBoundsException, no clear cause
    via by Unknown author,
  • Eclipse Cannot Open File
    via Stack Overflow by Steffi S.
    ,
    • java.lang.StringIndexOutOfBoundsException: String index out of range: 1 at java.lang.String.charAt(Unknown Source) at Default.Horizon.main(Horizon.java:27)

    Users with the same issue

    jokester
    jokester1 times, last one,
    harshg
    harshg2 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    30 more bugmates