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.

  • Making a binary to decimal converter
    via by Chris Haris,
  • How to fix index out of range error?
    via Stack Overflow by ArjunLotay
  • StringIndexOutOfBoundsException opening MANIFEST.MF
    via by,
  • comparing to char from two diferent strings.
    via by Patrick De,
  • Array without ints
    via by eric elysia,
    • java.lang.StringIndexOutOfBoundsException: String index out of range: 3 at java.lang.String.charAt(Unknown Source) at BinaryCounter.main( at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at edu.rice.cs.drjava.model.compiler.JavacCompiler.runCommand(

    Users with the same issue

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