public class Test { public static void main(String[] args) { int[] months = new months[NUM_OF_MONTHS]; for (int i = 0; i < NUM_OF_MONTHS; i++) { months[i] = DAYS_IN_MONTH; } DAYS_IN_MONTH--; months[APR] = DAYS_IN_MONTH; months[JUN] = DAYS_IN_MONTH; months[SEP] = DAYS_IN_MONTH; months[NOV] = DAYS_IN_MONTH; DAYS_IN_MONTH -= 2; months[FEB] = DAYS_IN_MONTH; } private static final int NUM_OF_MONTHS = 12; private static final int DAYS_IN_MONTH = 31; private static final int JAN = 0, FEB = 1, MAR = 2, APR = 3, MAY = 4, JUN = 5, JUL = 6, AUG = 7, SEP = 8, OCT = 9, NOV = 10, DEC = 11; }
Select the most appropriate answer.