java.lang.StringIndexOutOfBoundsException: String index out of range: 0
Searched on Google with the first line of a JAVA stack trace?
We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.
Recommended solutions based on your search
Samebug tips
- Expert 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.
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.
Solutions on the web
via Coderanch by Bryan Peach, 1 year ago
via Eclipse Bugzilla by raghavav, 1 year ago
via JIRA by Michael Stack, 2 years ago
via Oracle Community by 843810, 1 year ago
via Stack Overflow by GaZ
, 2 years agovia Stack Overflow by Jigs
, 2 years agojava.lang.StringIndexOutOfBoundsException: String index out of range: 0
at java.lang.String.charAt(String.java:686)
at Palindrome.isPal(Palindrome.java:47)
at Palindrome.main(Palindrome.java:78)