How to convert String to enum in Java? - Programmers Heaven

Howdy, Stranger!

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

Categories

How to convert String to enum in Java?

NickFNickF USAPosts: 132Member

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?

Tagged:

Comments

Sign In or Register to comment.