Say I have an enum which is just
public enum Blah { A, B, C, D }
and I would like to find the enum value of a string, for example
Using Blah.valueOf(string) is best but you can use Enum.valueOf(Blah.class, string) as well.
Blah.valueOf(string)
Enum.valueOf(Blah.class, string)