java.lang.StringIndexOutOfBoundsException: String index out of range: -1

Coderanch | Khaly Silverman | 2 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

    Program to convert binary to decimal

    Coderanch | 2 years ago | Khaly Silverman
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
  2. 0

    Program to convert binary to decimal

    Coderanch | 2 years ago | Junilu Lacar
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
  3. 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.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    0xDBE 142.3723.2 on Mac OS X to... :: JetBrains Developer Community

    jetbrains.com | 2 years ago
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
  6. 0

    Problem while decrypting signature on some video

    GitHub | 2 years ago | davinkevin
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1

  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: -1

    at java.lang.String.charAt()
  2. Java RT
    String.charAt
    1. java.lang.String.charAt(String.java:646)
    1 frame
  3. Unknown
    question5.main
    1. question5.main(question5.java:14)
    1 frame