why not from One or any +ve or -ve number as suitable
Jeff Verdegan wrote: And even though Java insulates us from that low-level memory addressing stuff, it still makes some of the math easier, and it makes sense if you view it as "how far are we from the beginning."
If we think of an array as a continuum, with its elements occupying space in that continuum, then in the above array, A occupies the space from 0 (the left edge) to 1 (1 unit away from the left edge), B occupies the space from 1 to 2, and so on. When we're naming the spot occupied by an element, we chose the position at which that element starts.
Mansukhdeep Thind wrote:
So, it was a design choice made by people with the foresight that operations on arrays should be as easy as possible mathematically. Correct?
Campbell Ritchie wrote:It means you can reliably find the middle element with n / 2 where n is the length of the array.