0

Why does the array count since 0?

24th Aug 2016, 7:43 PM
Fram RodrĂ­guez
Fram RodrĂ­guez - avatar
2 Answers
+ 1
Because the indexes are identified by zero-based numeration in Java, and in most of the programming languages.
24th Aug 2016, 7:45 PM
Fram RodrĂ­guez
Fram RodrĂ­guez - avatar
0
Every programmer starts counting from zero :) You need to get used to this because it is used in many other situations.
24th Aug 2016, 8:39 PM
Nikoleta Shopova
Nikoleta Shopova - avatar