fork(2) download
  1. class Demo
  2. {
  3. enum DayOfWeek {
  4. U, M, T, W, R, F, S
  5. }
  6.  
  7. public static void main (String[] args) {
  8. for (DayOfWeek day : DayOfWeek.values()) {
  9. System.out.println(day.toString());
  10. }
  11. }
  12. }
Success #stdin #stdout 0.07s 380224KB
stdin
Standard input is empty
stdout
U
M
T
W
R
F
S