im developing a J2ME mobile application when a enter login details to be fetched from the database on the interface it says String index out of range why?Please help!
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.
Last Wiki Answer Submitted: May 25, 2008 3:40 am by Ysrd430 pts.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.