75 pts.
 xml String
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!

Software/Hardware used:
ASKED: May 12, 2008  1:19 PM
UPDATED: May 25, 2008  3:40 AM

Answer Wiki:
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  Ysrd   430 pts.
All Answer Wiki Contributors:  Ysrd   430 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _