Search:

Type: Posts; User: Johnpower

Search: Search took 0.11 seconds.

  1. Replies
    6
    Views
    2,548

    [SOLVED] Re: ArrayOutofBoundary in Simple While Loop

    Dear Copeg, Norm, and Bryan:

    I tried while( i < ( limit - 1 )) and it works! Thank you very much indeed for your clever suggestion! Have a nice day!

    Regards.

    John
  2. Replies
    6
    Views
    2,548

    [SOLVED] Re: ArrayOutofBoundary in Simple While Loop

    Thank you Bryan. I don't have problem with that line. If you copy and paste the whole code on Source Editor, the problem is on Line 50: if (C[ i ].equals( C[ i - 1 ] ). Nothing seems to be wrong...
  3. Replies
    6
    Views
    2,548

    [SOLVED] ArrayOutofBoundary in Simple While Loop

    Dear Friends:

    The if statement in the while loop Line 50 is always wrong. I don't see anything wrong in it. If a pair of same numbers are put in the array, it runs well. If there is no such a pair...
Results 1 to 3 of 3