i think its best to create an array of strings containing the names. then when a name is used in your function use another function to see what the sInput is and do the next operation based on that.im not sure why you want the enum`s in an array also there already in an array in a way you can find out where in the list ther are compared to the order uin which there defined
enum wee
{
one,
two,
three,
}
//////////////////
main()
{
System.out.println(wee.three.ordinal());
}
the output will be 2