Monday, May 12, 2014

String index out of range: 0

String index out of range: 0

if this is your error , you are trying to fetch that value that is not present. you should confirm the length of the variable or array with .length()

The problem occurs when line is empty (e.g. ""). Then it doesn't have a character at index 0, hence your error.


0 comments:

Post a Comment