A deadline is looming on an assignment for class and i was hoping someone could help me out...
I am trying to decipher some code that the professor gave the class. When i test the code in eclipse i find that i get an error in eclipse saying:
exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -10160
at java.lang.String.substring(Unknown Source)
any ideas where to look or what it could be?
testing the code still and this time just used a snippet of the original string that it was supposed to be searching for a number in and then turning into a number... this time instead of -10160 i came back -30
ok i have narrowed it down to one line of code that looks totally fine and is for some reason shooting back a negative number, i am wondering whether or not i could paste his code here...
This post has been edited by qwerty505: 08 April 2010 - 09:55 PM