«
^
»
4.1 Details about the change
Java 5 has an enhanced for statement that enables us to write this more succinctly:
0141: for (int tMonthStart : tMonthStarts) 0142: { 0143: System.out.println(tMonthStart); 0144: }
This variant of the for statement is sometimes called a
foreach loop
or a
for-in loop
.