Chapter 1, Question 8
The for loop on lines 4 and 5 have no effect on the code. Output of this program is WED.
values() is a static method of enum that returns an array of enum's values. In this program, the array of Days values are being assigned to d2, which is an array of Days. Since the index of arrays start at 0, index 2 corresponds to WED.