Have a bit of trouble working with enums, how do you pass a method to an enum? This is a basic overview of the code:
public enum myEnum{
UNDEFINED, Value1, Value2
}
checkEnum(myEnum passedValue){
//do check stuff here
}
No I want to pass "Value1" to checkEnum but if I just say:
checkEnum(Value1);
Eclipse won't let me, in what format does my variable have to be to pass it to my method checkEnum?