+ 2
Do indexes start from 1?
2 odpowiedzi
+ 2
java
if you want to call a constant value in the table, you need to know its index
idnex starts with 0 e.g.
int [] table = {1,2,3,4,5,6,7,8,9}
table [1] = 2
table [8] = 9
table [0] = 1
the index of this table is 0-8
length of this table is 9
+ 1
Thanks