I figured it out. The compiler was adding all of the values together in order to find one value, which was in turn 8 over the amount of integers available to choose from. Is there a way to get all 4...
Type: Posts; User: Daren_Z
I figured it out. The compiler was adding all of the values together in order to find one value, which was in turn 8 over the amount of integers available to choose from. Is there a way to get all 4...
Line 15 is: int sum = Integer.parseInt(cardNum.substring(1 + 3 + 5 + 7));
the odd thing is none of these are negetive or past the boundaries of the string. That is, unless I screwed up somewhere....
Hi there, I am trying to write a program for a class and I ran into this bug:
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -8
at...