I don't know if this is the right place to ask for this... but hey guys here are experts in java
i have an array like this one:
public static int[] nivel1 = {
0,0,0,0,0,0,0,0,0,0,
0,0,1,1,1,1,1,1,0,0,
0,0,0,1,1,1,1,0,0,0,
0,0,1,1,0,0,1,1,0,0};
why does nivel1.length gets me the value 14???
if we count the 1 values we get 14 and i tried to change the number of 1's in the array and the length keeps guessing the number of 1's... what i needed was the total length of 0's and 1's
How can i do that and why length does this??
Regards


Reply With Quote

