Demo for enum type of java