Zebra0.com

java arrays

The next example uses an array to store the number of days in each month. We won't be using element 0, but it is easier to understand if January is element 1 and December is element 12.