RATE THIS ANSWER
0
Click to Vote:
0
0
Last Answered:
May 25 2008 3:40 AM GMT
by Ysrd
You are reading the string beyond it's length. This happens if you use a for loop or while loop to parse a string and you do not check to see if you are beyond it's length. Or you do not check if the index is -1 (The answer you get if you ask for an indexOf and it doesn't find a corresponding match in the string and then try to read the string index of -1.