How do you convert a List<String> into a List<enum> in java 6?
11:48 31 Jul 2014

I basically need the Java version of this question. I am having a hard time figuring out how to translate that into java.

Say I have an enum of numbers and each one has its own class and method

public enum Numbers{
           one,
           two,
           three
           ....
    }

I ended up in my program have a list of strings so I need to convert them to a list of enums so I can do something like

    for(Number number : listOfNumbers)
        {
        switch (number)
        {
        case one:
            new One();
            One.oneMethod();
            break;
           ...
        }
        }
java list enums