10

MRW I start Index of an array with 1 and not 0 and I get out of index exception.

Comments
  • 1
    Starting from 1 shouldn't give you an index out of bounds exception, it will just miss the first element.
  • 1
    @kamen: Actually it did in Java. Will post the screenshot when I get home.
  • 0
    Maybe it's the edge case when the array is of length 1 (and thus array[1] doesn't exist at all)?
  • 0
    Unless you're using MATLAB...
Add Comment