need more explanation about array length | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 2

need more explanation about array length

5th Oct 2016, 6:38 AM
maruf msruf
maruf msruf - avatar
3 Antworten
+ 5
it counts each (comma-separated) value inside your [bracket-closed] array!
5th Oct 2016, 8:27 PM
Klodian Lula
Klodian Lula - avatar
+ 2
the array.length method prints out the number of values you have in your array
5th Oct 2016, 5:12 PM
jerry
jerry - avatar
0
Array is a collection of same type variables referred by the same name. Each element of array can be accessed via index. In Java, array index always integer starting from 0. Here is a picture to illustrate an array... http://javabasictoadvanced.blogspot.co.id/2016/05/array.html
5th Oct 2016, 7:15 AM
Aula Muttaqin
Aula Muttaqin - avatar