Let's say I have a string with a value
'Language'
And I have an enum called Language
enum Language{
English,
Spanish,
French
}
Is there a way to use the string 'Language' and return the values of the Enum Language. I'm basically wondering if there is a method to get an instance of the Enum Language by passing in a string. Kind of like
Class.forName()
but for enums.