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

Coderanch | Tarius Peddle | 8 months 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

    Exception in thread "main" java.lang.StringIndexOutOfBoundsException:

    Coderanch | 8 months ago | Tarius Peddle
    java.lang.StringIndexOutOfBoundsException: String index out of range: 6
  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

    SubString error indexoutofbounds Java

    Stack Overflow | 4 years ago | Evangeline Slape
    java.lang.StringIndexOutOfBoundsException: String index out of range: 6
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Exception in program for search anagrams in 2 strings

    Stack Overflow | 2 years ago | v3ctor
    java.lang.StringIndexOutOfBoundsException: String index out of range: 6
  6. 0

    Problem communicating with socket application

    Google Groups | 1 decade ago | Pep
    java.lang.StringIndexOutOfBoundsException: String index out of range: 6

  1. poroszd 12 times, last 1 week ago
  2. linxiaolong 1 times, last 2 months ago
  3. jokester 1 times, last 3 months ago
  4. tyson925 1 times, last 3 months ago
  5. Torasque 1 times, last 4 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: 6

    at java.lang.String.charAt()
  2. Java RT
    String.charAt
    1. java.lang.String.charAt(Unknown Source)
    1 frame
  3. Unknown
    j32016.main
    1. j32016.main(j32016.java:31)
    1 frame