Search:

Type: Posts; User: Daren_Z

Search: Search took 0.13 seconds.

  1. Replies
    4
    Views
    1,322

    Re: Java Exception help

    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...
  2. Replies
    4
    Views
    1,322

    Re: Java Exception help

    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....
  3. Replies
    4
    Views
    1,322

    Java Exception help

    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...
Results 1 to 3 of 3