SyntaxFix
Write A Post
Hire A Developer
Questions
Use static method valueOf(String) defined for each enum.
valueOf(String)
enum
For example if you have enum MyEnum you can say MyEnum.valueOf("foo")
enum MyEnum
MyEnum.valueOf("foo")