java.lang.StringIndexOutOfBoundsException

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.


rafaelrafael

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

  • loops
    via by Paul Baker,
  • Couting words/sentences in a jTextArea
    via by 807577,
  • Fastscroll crash
    via GitHub by adrian-bl
    ,
  • CLOB in BI Publisher Reports
    via by Guest_0607,
    • java.lang.StringIndexOutOfBoundsException: String index out of range: 31 at java.lang.String.charAt(String.java:516) at A2Q3.charCount(A2Q3.java:94) at A2Q3.getInformation(A2Q3.java:59) at A2Q3.main(A2Q3.java:113)

    Users with the same issue

    poroszdporoszd
    12 times, last one,
    olle.hallinolle.hallin
    1 times, last one,
    linxiaolonglinxiaolong
    1 times, last one,
    jokesterjokester
    1 times, last one,
    tyson925tyson925
    1 times, last one,
    30 more bugmates