Define an enumeration for each of the months in the year. Use a for-each statement to display each month.

What will be an ideal response?

```
enum Month {JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC}
for (Month nextMonth : Month.values())
System.out.print(nextMonth + " ");
System.out.println();
```

This code is in Fragments.java.

Computer Science & Information Technology

You might also like to view...

A dialog capable of showing a message to the user is displayed with method________of object________.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

The ____________ method associated with the predefined dialog classes, like FontDialog or ColorDialog causes the dialog box to be displayed.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology