java.lang.StringIndexOutOfBoundsException: String index out of range: 3

Coderanch | Chris Haris | 5 years ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0

    Making a binary to decimal converter

    Coderanch | 5 years ago | Chris Haris
    java.lang.StringIndexOutOfBoundsException: String index out of range: 3
  2. 0
    samebug 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.
  3. 0

    variable1.indexOf(variable2.charAt(i)) Out of bounds exception

    Stack Overflow | 2 years ago | TGoldenM
    java.lang.StringIndexOutOfBoundsException: String index out of range: 3
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    String index out of bounds error, cant find the root of the error

    Stack Overflow | 5 years ago | Rdhao
    java.lang.StringIndexOutOfBoundsException: String index out of range: 3
  6. 0

    How to fix index out of range error?

    Stack Overflow | 1 year ago | ArjunLotay
    java.lang.StringIndexOutOfBoundsException: String index out of range: 3

  1. linxiaolong 1 times, last 1 month ago
  2. jokester 1 times, last 1 month ago
  3. tyson925 1 times, last 2 months ago
  4. Torasque 1 times, last 3 months ago
  5. Hronom 32257 times, last 3 months ago
11 more registered users
18 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.StringIndexOutOfBoundsException

    String index out of range: 3

    at java.lang.String.charAt()
  2. Java RT
    String.charAt
    1. java.lang.String.charAt(Unknown Source)
    1 frame
  3. Unknown
    BinaryCounter.main
    1. BinaryCounter.main(BinaryCounter.java:18)
    1 frame
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    4. java.lang.reflect.Method.invoke(Unknown Source)
    4 frames
  5. edu.rice.cs
    JavacCompiler.runCommand
    1. edu.rice.cs.drjava.model.compiler.JavacCompiler.runCommand(JavacCompiler.java:271)
    1 frame