1 2 3 4 5 6 7 8 9 10
enum Color { R,G,B; } public class Code { public static void main(String[] argv) { Color c = Color.R; switch (c) { } } }