If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.

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.

  • Problem with JList
    via by axel axek,
  • Primative Eksel spreadsheet JAVA
    via Stack Overflow by random35
  • Java String index out of bound
    via Stack Overflow by Arka Bhattacharjee
    • java.lang.StringIndexOutOfBoundsException: String index out of range: 4 at java.lang.String.charAt( at Sesiune.init( at Sesiune.itemStateChanged( at java.awt.Choice.processItemEvent( at java.awt.Choice.processEvent( at java.awt.Component.dispatchEventImpl( at java.awt.Component.dispatchEvent( at java.awt.EventQueue.dispatchEvent( at java.awt.EventDispatchThread.pumpOneEventForFilters( at java.awt.EventDispatchThread.pumpEventsForFilter( at java.awt.EventDispatchThread.pumpEventsForHierarchy( at java.awt.EventDispatchThread.pumpEvents( at java.awt.EventDispatchThread.pumpEvents( at

    Users with the same issue

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