Following is a sample enum I have in my Java code.
public enum MyStrings{ A, B, C, D, E, F }
I need to find the enum value of "C". How can I do this?
Use MyStrings.valueOf("C") to get MyStrings.C
MyStrings.valueOf("C")
MyStrings.C
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Use
MyStrings.valueOf("C")
to getMyStrings.C