I'm having troubles figuring out exactly how to override valueOf for an enum. ex:
public enum foo {
a, b, c
foo() {}
public static ???? valueOf(String s) {
return ????
}
}
What's the correct class for the ??? so that it is overrides the method? Thanks!