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


Solutions on the web

Solution icon of github
String index out of range: -1

Solution icon of stackoverflow
String index out of range: 0

Solution icon of stackoverflow
String index out of range: 0

Solution icon of stackoverflow
via Stack Overflow by djoomla
, 1 year ago
String index out of range: 97

Solution icon of stackoverflow
via Stack Overflow by user3353820
, 1 year ago
String index out of range: 3

Solution icon of stackoverflow
String ind ex out of range: 72

Stack trace

java.lang.StringIndexOutOfBoundsException: String index out of range: -1
	at java.lang.AbstractStringBuilder.setCharAt(AbstractStringBuilder.java:407)
	at java.lang.StringBuilder.setCharAt(StringBuilder.java:76)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago