Two dimensional calendar array

From: Juggernaut (juggernaut8181_at_hotmail.com)
Date: 02/28/04


Date: 28 Feb 2004 06:35:49 -0800

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.



Relevant Pages

  • Two dimensional array problem
    ... I have a two dimensional array,, and I have it made as a ... calender where the days are filled with some information. ... that didnt work, ... Any advice would be gratefull. ...
    (comp.lang.java.programmer)
  • Re: Two dimensional array problem
    ... Nevermind this one.. ... "Juggernaut" wrote in message ... > calender where the days are filled with some information. ... > that didnt work, ...
    (comp.lang.java.programmer)