title: Should element numbering start from 0 or 1 in Java?
body: <p>I'm trying to learn the concept of index and element in Java. I have seen two versions of representations for elements and am not sure which one is correct.</p>
  
  <p>For an array with 4 elements, the first version assigns <code>Element(0)</code> to the first element, <code>Element(1)</code> to the second element and so on. This version is shown as the graph below.</p>
  
  <p><a href="https://i.stack.imgur.com/A696o.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/A696o.png" alt="enter image description here"></a></p>
  
  <p>The second version, <code>Element(1)</code> is assigned to the first element, <code>Element(2)</code> is assigned to the second element and so on.</p>
  
  <p>I'm very confused as to which version of representing elements is correct and which is wrong, this is causing me a lot of confusion. </p>