for (int i=0; i<monthLen.length; i++) { System.out.println("Month " + (i+1) + " has " + monthLen[i] + " days."); }