public class Array1 { public static void main(String[] args) { int january = 31; //all the same data type int february = 28; int march = 31; int april = 30; int may = 31; int june = 30; int july = 31; int august = 31; int september = 30; int october = 31; int november = 30; int december = 31; int sum = january + february + march + april + may + june + july + august + september + october + november + + december; System.out.println("A year has " + sum + " days."); System.out.println("The average length of a month is " + sum / 12.0 + " days."); //don't truncate! } }