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

Oracle Community | 807595 | 1 decade ago
  1. 0

    what is wrong with this code?

    Oracle Community | 1 decade ago | 807595
    java.lang.StringIndexOutOfBoundsException: String index out of range: -5
  2. 0

    Using BigDecimal in number factorisation

    Stack Overflow | 2 years ago | Emma
    java.lang.StringIndexOutOfBoundsException: String index out of range: -2
  3. 0

    CS 111: Common Java Errors

    bu.edu | 2 months ago
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Merging 2 strings

    Stack Overflow | 1 year ago | Clement
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
  6. 0

    Substring in Java - length up to a value

    Stack Overflow | 4 years ago | user1756421
    java.lang.StringIndexOutOfBoundsException: String index out of range: 6

  1. richard77 2 times, last 6 days ago
  2. kjhdofjosvs 2 times, last 1 week ago
  3. archenroot 17 times, last 2 weeks ago
  4. Alexandru Popa 2 times, last 4 weeks ago
  5. poroszd 3 times, last 1 month ago
18 more registered users
58 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: -5

    at java.lang.String.substring()
  2. Java RT
    String.substring
    1. java.lang.String.substring(String.java:1525)
    1 frame
  3. Unknown
    Test.main
    1. Test.main(Test.java:9)
    1 frame