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.

  • Java beginner, trouble with "switch"
    via by Unknown author,
  • CLOB in BI Publisher Reports
    via by Guest_0607,
    • java.lang.StringIndexOutOfBoundsException: String index out of range: 0 at java.lang.String.charAt(Unknown Source) at emubank.EmuBank.main(EmuBank.java:31)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    poroszdporoszd
    12 times, last one,
    olle.hallinolle.hallin
    1 times, last one,
    linxiaolonglinxiaolong
    1 times, last one,
    30 more bugmates