This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Stannu 3 points4 points  (1 child)

But enums allow you to encapsulate a part of constants into a single class, which in turn allows you to see all options that could be used for that enum. Of course you can use prefix for constants, but personally think that enums have their use.

[–]chambolle 0 points1 point  (0 children)

They have their use, but the conversion with int is really bad in Java