J
Juggernaut
I have a two dimensional array, [12][31], and I have it made as a
calender where the days are filled with some information. But some
months, like february only has 28 days so I havent filled 29 30 and
31. But now I want to make some calculations on these numbers, and
divide them by all the days. But the problem is they also count the
array fields like february 29 , 30 and 31 wich is empty..I tried a for
loop where if col < table[row].length && table[row][col] != null. But
that didnt work, how can I do this?
Someone suggested for me to try
yourArray[1] = new int SomeType[28];
But java didnt accept this.
Any advice would be gratefull.
calender where the days are filled with some information. But some
months, like february only has 28 days so I havent filled 29 30 and
31. But now I want to make some calculations on these numbers, and
divide them by all the days. But the problem is they also count the
array fields like february 29 , 30 and 31 wich is empty..I tried a for
loop where if col < table[row].length && table[row][col] != null. But
that didnt work, how can I do this?
Someone suggested for me to try
yourArray[1] = new int SomeType[28];
But java didnt accept this.
Any advice would be gratefull.