+ 2

Do indexes start from 1?

4th Oct 2018, 6:05 PM
__az__
__az__ - avatar
2 Antworten
+ 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
4th Oct 2018, 7:06 PM
Daniel (kabura)
Daniel (kabura) - avatar
+ 1
Thanks
4th Oct 2018, 7:29 PM
__az__
__az__ - avatar