1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
public enum style{
        A(1),B(2),C(3),D(4);
        public int num;
        style(int n){
            num = n;
        }
    }
 
    public static void main(String[] args){
        System.out.println(style.A.num);
        System.out.println(style.B.num);
        System.out.println(style.C.num);
        System.out.println(style.D.num);
    }
}
cs


아 진짜 이렇게 밖에 안되냐 ㅋㅋㅋㅋㅋ

힘겹다 힘겨워 씨벌 ㅋㅋㅋㅋ