Answers for "java convert enum string to enum"

C#
3

string to enum java

EnumType.valueOf(yourString)
Posted by: Guest on June-01-2021
1

How can I cast string to enum?

YourEnum foo = (YourEnum) Enum.Parse(typeof(YourEnum), yourString);
Posted by: Guest on July-01-2021

C# Answers by Framework

Browse Popular Code Answers by Language