class Demo
{
enum DayOfWeek {
U, M, T, W, R, F, S
}
public static void main
(String[] args
) { for (DayOfWeek day : DayOfWeek.values()) {
System.
out.
println(day.
toString()); }
}
}
Y2xhc3MgRGVtbwp7CiAgICBlbnVtIERheU9mV2VlayB7CiAgICAJVSwgTSwgVCwgVywgUiwgRiwgUwogICAgfQoKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB7CgkJZm9yIChEYXlPZldlZWsgZGF5IDogRGF5T2ZXZWVrLnZhbHVlcygpKSB7CgkJCVN5c3RlbS5vdXQucHJpbnRsbihkYXkudG9TdHJpbmcoKSk7CgkJfQoJfQp9