1public enum Day {
2
3 SUNDAY(), MONDAY, TUESDAY(2), WEDNESDAY, THURSDAY, FRIDAY, SATURDAY;
4
5 int value;
6
7 private Day(int value) {
8 System.out.println("arg cons");
9 this.value = value;
10 }
11
12 private Day() {
13 System.out.println("no arg cons");
14 }
15
16 public static void main(String args[]) {
17
18 }
19
20}