fork download
  1. import java.util.*;
  2.  
  3. class Demo {
  4. enum DayOfWeek {
  5. U, M, T, W, R, F, S
  6. }
  7.  
  8. public static void main (String[] args) {
  9. Iterator days = Arrays.asList(DayOfWeek.values()).iterator();
  10. while(days.hasNext()) {
  11. System.out.println(days.next());
  12. }
  13. }
  14. }
Success #stdin #stdout 0.08s 380160KB
stdin
Standard input is empty
stdout
U
M
T
W
R
F
S