I am in a situation where i need to declare something like this
2000=>1,3,3,3,5,5
2001=>1,3,1,0,1,3
2002=>1,2,3,7,0,2
2003=>1,45,3,3,5,1
2004=>1,2,3,3,8,9
(I don't need any thing below 2000)
if i declare array like
arrayname[2000]="1,3,3,3,5,5";
arrayname[2001]=>1,3,1,0,1,3
won't it mean i will be wasting 1900 values.
Does it have any effect on memory or processing(.
what is best way of doing it?
hasmap ,map ,multidimensional array?
I am new to java and android development.
thanks
2000=>1,3,3,3,5,5
2001=>1,3,1,0,1,3
2002=>1,2,3,7,0,2
2003=>1,45,3,3,5,1
2004=>1,2,3,3,8,9
(I don't need any thing below 2000)
if i declare array like
arrayname[2000]="1,3,3,3,5,5";
arrayname[2001]=>1,3,1,0,1,3
won't it mean i will be wasting 1900 values.
Does it have any effect on memory or processing(.
what is best way of doing it?
hasmap ,map ,multidimensional array?
I am new to java and android development.
thanks