How to convert String to enum in Java?

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?


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


In this Discussion