Search:

Type: Posts; User: jps

Search: Search took 0.07 seconds.

  1. Replies
    4
    Views
    1,376

    Re: String array problem

    myArray[10] gives:
    myArray[0], myArray[1], myArray[2], myArray[3], myArray[4], myArray[5], myArray[6], myArray[7], myArray[8], myArray[9]
    which comes to 10 elements, not 11

    Also note that I had...
  2. Replies
    4
    Views
    1,376

    Re: String array problem

    namearry[10] is not "nothing in it" it is "does not exist"

    0,1,2, .... 9 is 10 locations

    In the loop it says <9. So lets count. 0, 1, 2, 3, 4, 5, 6, 7, 8, ...stop. 9 is not <9 so the loop body...
Results 1 to 2 of 2