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.

  • error
    via by 807595,
  • How to add enter to this string array?
    via Stack Overflow by raymond
    ,
  • Battleships - guys please help me out!
    via by Mark Spritzler,
  • JBoss Community / Mailing Lists
    via by Unknown author,
    • java.lang.StringIndexOutOfBoundsException: String ind ex out of range: 0 at java.lang.String.charAt(String.java:460) at Squeeze.main(Squeeze.java:23)

    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