SyntaxFix
Write A Post
Hire A Developer
Questions
You can use values() method:
values()
For instance Status.values()[0] will return PAUSE in your case, if you print it, toString() will be called and "PAUSE" will be printed.
Status.values()[0]
toString()